Returns the total face count of a mesh object.
Rhino.MeshFaceCount (strObject)
strObject |
Required. String. The identifier of a mesh object. |
Number |
The number of mesh faces if successful |
Null |
If not successful, or on error. |
Const rhObjectMesh = 32
Dim strObject
strObject = Rhino.GetObject("Select mesh", rhObjectMesh )
Rhino.Print "Quad faces: " & CStr(Rhino.MeshQuadCount(strObject))
Rhino.Print "Triangle faces: " & CStr(Rhino.MeshTriangleCount(strObject))
Rhino.Print "Total faces: " & CStr(Rhino.MeshFaceCount(strObject))