Returns the total face count of a mesh object.
rhinocriptsyntax.MeshFaceCount (object_id)
rhinocript.mesh.MeshFaceCount (object_id)
object_id |
Required. String or Guid. The identifier of a mesh object. |
Number |
The number of mesh faces if successful |
import rhinocsriptsyntax as rs
obj = rs.GetObject("Select mesh", rs.filter.mesh )
print "Quad faces:", rs.MeshQuadCount(obj)
print "Triangle faces:", rs.MeshTriangleCount(obj)
print "Total faces:", rs.MeshFaceCount(obj)