Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Get Poly/Tris/Edges/Verts Statistics

Get Poly/Tris/Edges/Verts Statistics

theeastcoastwest
Participant Participant
973 Views
1 Reply
Message 1 of 2

Get Poly/Tris/Edges/Verts Statistics

theeastcoastwest
Participant
Participant

How can one access model/object/node statistics, such as the ones able to be displayed in the viewport?

 

I've found the GetPolygonCount method, which returns (FacesCounts, VertsCount), as well as the polyOp.getNumEdges, polyOp.getNumVerts, and polyOp.getNumFaces methods, but I can't seem to find any way to access information related to total triangles. 

 

I'm trying to create a function that returns model statistics and would like to be able to include total counts for tris, quads, and ngons.

 

 

0 Likes
Accepted solutions (1)
974 Views
1 Reply
Reply (1)
Message 2 of 2

denisT.MaxDoctor
Advisor
Advisor
Accepted solution

the best you can do is to ask number of faces of object's mesh

node.mesh.numfaces

every geometry objects has trimesh