Click or drag to resize

GeometryDecoderToMesh Method

Converts the specified Autodesk.Revit.DB.Mesh to an equivalent Rhino.Geometry.Mesh.

Namespace:  RhinoInside.Revit.Convert.Geometry
Assembly:  RhinoInside.Revit (in RhinoInside.Revit.dll) Version: 1.7.8130
Syntax
public static Rhino.Geometry.Mesh ToMesh(
	this Autodesk.Revit.DB.Mesh mesh
)

Parameters

mesh
Type: Autodesk.Revit.DB.Mesh
Revit mesh to convert.

Return Value

Type: Rhino.Geometry.Mesh
Rhino mesh that is equivalent to the provided Revit mesh.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Autodesk.Revit.DB.Mesh. 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).
Examples
Using ToMesh(Mesh) as extension method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

Mesh rhinoMesh = revitMesh.ToMesh();
Using ToMesh(Mesh) as static method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

Mesh rhinoMesh = GeometryEncoder.ToMesh(revitMesh)
See Also