MeshFaceCount

Returns the total face count of a mesh object.

Syntax

rhinocriptsyntax.MeshFaceCount (object_id)

rhinocript.mesh.MeshFaceCount (object_id)

Parameters

object_id

Required.  String or Guid.  The identifier of a mesh object.

Returns

Number

The number of mesh faces if successful

Example

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)

Also See

IsMesh

MeshContourPoints

MeshFaces

MeshVertexCount

MeshVertices