primitive
Returns the number of triangles for a given object.
oLong = GetNbTriangles( [InputObjs] ); |
Returns the number of triangles in the object as a Long.
newscene dim PolySphere, NurbsSphere PolySphere = CreatePrim( "Sphere", "MeshSurface" ) NurbsSphere = CreatePrim( "Sphere", "NurbsSurface" ) Translate NurbsSphere, -9.70854812193472, 0, 0, siRelative, siView, siObj, siXYZ LogMessage "Number of triangles on polygon mesh " & GetNbTriangles( PolySphere ) LogMessage "Number of triangles on NURBS mesh " & GetNbTriangles( NurbsSphere ) |