Click or drag to resize

RhinoObjectMeshCount Method

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)
Since: 5.0
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