Returns the number of triangular faces of a mesh object.
rhinoscriptsyntax.MeshTriangleCount (object_id)
rhinoscript.mesh.MeshTriangleCount (object_id)
object_id |
Required. String or Guid. The identifier of a mesh object. |
Number |
The number of triangular mesh faces if successful |
import rhinoscriptsyntax 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)