Click or drag to resize

GeometryDecoderToBrep Method (Face)

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

Namespace:  RhinoInside.Revit.Convert.Geometry
Assembly:  RhinoInside.Revit (in RhinoInside.Revit.dll) Version: 1.7.8130
Syntax
public static Rhino.Geometry.Brep ToBrep(
	this Autodesk.Revit.DB.Face face
)

Parameters

face
Type: Autodesk.Revit.DB.Face
Revit face to convert.

Return Value

Type: Rhino.Geometry.Brep
Rhino brep that is equivalent to the provided Revit face.

Usage Note

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

Brep rhinoBrep = revitFace.ToBrep();
Using ToBrep(Face) as static method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

Brep rhinoBrep = GeometryEncoder.ToBrep(revitFace)
See Also