Click or drag to resize

MeshRebuildMesh Method (Mesh, Boolean, Boolean)

Use this function to rebuild meshes that are not acting properly. Vertices and faces are kept. Face normals and vertex normals are recalculated. Surface curvatures, and surfaces parameters are not replaced.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 8.23
Syntax
public static Mesh RebuildMesh(
	Mesh mesh,
	bool preserveTextureCoordinates,
	bool preserveVertexColors
)

Parameters

mesh
Type: Rhino.GeometryMesh
Mesh to be rebuilt.
preserveTextureCoordinates
Type: SystemBoolean
Retains mesh texture coordinates.
preserveVertexColors
Type: SystemBoolean
Retains mesh vertex colors.

Return Value

Type: Mesh
The rebuilt mesh if successful, null otherwise.
See Also