|
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
)
<ExtensionAttribute>
Public Shared Function Convert (
mesh As IReadonlyMesh
) As Mesh
public:
[ExtensionAttribute]
static Mesh^ Convert(
IReadonlyMesh^ mesh
)
[<ExtensionAttribute>]
static member Convert :
mesh : IReadonlyMesh -> Mesh
Parameters
- mesh
- Type: Karamba.GeometryIReadonlyMesh
Mesh.
Return Value
Type:
MeshRhino 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 See Also