M_Rhino_Geometry_Brep_CreateShell - mcneel/rhinocommon-api-docs GitHub Wiki
Creates a hollowed out shell from a solid Brep. Function only operates on simple, solid, manifold Breps.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static Brep[] CreateShell(
Brep brep,
IEnumerable<int> facesToRemove,
double distance,
double tolerance
)
VB
Public Shared Function CreateShell (
brep As Brep,
facesToRemove As IEnumerable(Of Integer),
distance As Double,
tolerance As Double
) As Brep()
- brep
- Type: Rhino.Geometry.Brep
The solid Brep to shell. - facesToRemove
- Type: System.Collections.Generic.IEnumerable(Int32)
The indices of the Brep faces to remove. These surfaces are removed and the remainder is offset inward, using the outer parts of the removed surfaces to join the inner and outer parts. - distance
- Type: System.Double
The distance, or thickness, for the shell. This is a signed distance value with respect to face normals and flipped faces. - tolerance
- Type: System.Double
The offset tolerane. When in doubt, use the document's absolute tolerance.
Type: Brep[]
An array of Brep results or null on failure.
Supported in: 6.0.16224.21491, 5D58w