Skip to content

MeshObject.SetMesh

Public Class

Only for developers who are defining custom subclasses of MeshObject. Directly sets the internal mesh geometry for this object. Note that this function does not work with Rhino’s “undo”.

Namespace: Rhino.DocObjects

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

protected Mesh SetMesh(
Mesh mesh
)

Parameters

mesh

Type: Rhino.Geometry.Mesh

Return Value

Type: Mesh
The old mesh geometry that was set for this object

Remarks

Note that this function does not work with Rhino’s “undo”. The typical approach for adjusting the mesh geometry is to modify the object that you get when you call the MeshGeometry property and then call CommitChanges.