WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-03-2013, 08:48 AM
jpriede jpriede is offline
Member
 
Join Date: Dec 2012
Posts: 10
Mesh Graph (more than vertex position info)

Hello, I know I can get the xyz position of any given vertex in a model, but I would love to be able to know which vertecies are "neighbours" of vertex X.

For those math folks out there, I want the full graph of the mesh.

Something like (pseudocode/java...):

Vertex {
ArrayList<Vertex> NeighbouringVertecies;
float xPos;
float yPos;
float zPos;
float uTexCoord;
float vTexCoord;
}

So, if I say byMagic.getVertex(0) I get a vertex object that not only knows where it is, but also which vertecies within the overall mesh it is connected to, so I could do byMagic.getVertex(0).getNeighbour(0).getXPos() or byMagic.getVertex(0).getNeighbours() that would return a list of neighbours.

Basically, I want to be able to conceptually "travel" along edges to "find" an arbitrary vertex.
Reply With Quote
Reply

Tags
edge, graph, mesh, vertex


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Identify a class via its mesh EnvisMJ Vizard 1 02-15-2012 09:43 AM
Turning info boxes on and off Karla Vizard 2 12-17-2007 04:13 PM
How to get the position of a vertex Jerry Vizard 1 10-04-2006 12:28 PM


All times are GMT -7. The time now is 05:03 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC