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® FBX® / FBX SDK / Get Mesh indices
  RSS 2.0 ATOM  

Get Mesh indices
Rate this thread
 
43033
 
Permlink of this thread  
avatar
  • wh1sp3r
  • Posted: 10 May 2010 05:47 AM
  • Total Posts: 12
  • Joined: 10 May 2010 12:41 PM

Hello,
i would like to ask, how can i get indices for ControlPoints? ( i guess, control points are vertices, i hope )

I see, i can get indices for binormals, tangents, normals, but how can i get them for polygons ?
Thank you very much for help ;-)



Replies: 2
/userdata/avatar/3yvwf23us_doug100x100.png
for (int i 0lPolygonCounti++)
 {
   int lPolygonSize 
pMesh->GetPolygonSize(i)

   
for (int j 0lPolygonSizej++)
   {

     int lControlPointIndex 
pMesh->GetPolygonVertex(ij)
     
.
     .
     .
Author: Doug Rogers

Replied: 10 May 2010 06:07 AM  
/userdata/avatar/3yvwf23us_doug100x100.png

delete this, double posted

Author: Doug Rogers

Replied: 10 May 2010 06:07 AM  
avatar
  • wh1sp3r
  • Posted: 10 May 2010 06:14 AM

Thank you, looks like, I am somewhere else :)

i was trying to get polygons there

KFbxGeometrygeometrie NextNode->GetGeometry()
int c_count 
geometrie->GetControlPointsCount()

...
...

so, i need to get a mesh :) i will try it :)



Replies: 0