Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / How to get edges from faces?
  RSS 2.0 ATOM  

How to get edges from faces?
Rate this thread
 
43182
 
Permlink of this thread  
avatar
  • Total Posts: 3
  • Joined: 13 May 2010 02:45 PM

We are trying to write some code using the Maya C++ API that generates output suitable for our internal game data structures.  We currently store faces as pointers to edges and edges as pointers to vertexes.  We do this to facilitate automated pathing and also LOD.  However in the API I don’t see any obvious way to get the edges associated with a face. I was wondering if edges are really associated with faces at all internally in Maya. Perhaps the association is just enforced by the Maya code and not Maya’s internal data structures. I think I can write the code to build the association myself if I have to because I can get both vertexes of faces and vertexes of edges. However before I do, I wanted to check to see if there is any other easy way to get this information.  Thanks in advance.



Replies: 0