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
Syntaxpublic static Mesh RebuildMesh(
Mesh mesh,
bool preserveTextureCoordinates,
bool preserveVertexColors
)
Public Shared Function RebuildMesh (
mesh As Mesh,
preserveTextureCoordinates As Boolean,
preserveVertexColors As Boolean
) As Mesh
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:
MeshThe rebuilt mesh if successful, null otherwise.
See Also