Click or drag to resize
RhinoObjectMeshCount Method
Rhino 5 for Windows
RhinoObjects can have several different types of meshes and different numbers of meshes. A b-rep can have a render and an analysis mesh on each face. A mesh object has a single render mesh and no analysis mesh. Curve, point, and annotation objects have no meshes.

Namespace: Rhino.DocObjects
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.30000.17 (5.13.60913.21340)
public virtual int MeshCount(
	MeshType meshType,
	MeshingParameters parameters


Type: Rhino.GeometryMeshType
type of mesh to count
Type: Rhino.GeometryMeshingParameters
if not null and if the object can change its mesh (like a brep), then only meshes that were created with these mesh parameters are counted.

Return Value

Type: Int32
number of meshes
See Also