M_Rhino_Geometry_Brep_CreateFromOffsetFace - mcneel/rhinocommon-api-docs GitHub Wiki
Offsets a face including trim information to create a new brep.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static Brep CreateFromOffsetFace(
BrepFace face,
double offsetDistance,
double offsetTolerance,
bool bothSides,
bool createSolid
)
VB
Public Shared Function CreateFromOffsetFace (
face As BrepFace,
offsetDistance As Double,
offsetTolerance As Double,
bothSides As Boolean,
createSolid As Boolean
) As Brep
- face
- Type: Rhino.Geometry.BrepFace
the face to offset. - offsetDistance
- Type: System.Double
An offset distance. - offsetTolerance
- Type: System.Double
Use 0.0 to make a loose offset. Otherwise, the document's absolute tolerance is usually sufficient. - bothSides
- Type: System.Boolean
When true, offset to both sides of the input face. - createSolid
- Type: System.Boolean
When true, make a solid object.
Type: Brep
A new brep if successful. The brep can be disjoint if bothSides is true and createSolid is false, or if createSolid is true and connecting the offsets with side surfaces fails. null if unsuccessful.
Supported in: 6.0.16224.21491, 5D58w