RhinoCommon API
MeshObjectSetMesh Method |
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)

Parameters
- mesh
- Type: Rhino.GeometryMesh
[Missing <param name="mesh"/> documentation for "M:Rhino.DocObjects.MeshObject.SetMesh(Rhino.Geometry.Mesh)"]
Return Value
Type: MeshThe old mesh geometry that was set for this object

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.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.8