Click or drag to resize

MeshExtensionsConvert Method (IReadonlyMesh)

Convert to mesh to rhino mesh. If the mesh is already of type RhinoMesh, the underlying mesh Mesh is returned without creating a copy of it. Otherwise, a new rhino mesh instance is created from the supplied mesh. The following attributes/properties are taken into account. (1) Mesh topology (vertices, faces) (2) Vertex normals. (3) Vertex colors.

Namespace:  Karamba.GHopper.Geometry
Assembly:  karambaGH (in karambaGH.dll) Version: 1.15.0.0 (1.15.0.0)
Syntax
public static Mesh Convert(
	this IReadonlyMesh mesh
)

Parameters

mesh
Type: Karamba.GeometryIReadonlyMesh
Mesh.

Return Value

Type: Mesh
Rhino mesh.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IReadonlyMesh. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionIs thrown when the mesh is null.
See Also