M_Rhino_Geometry_Brep_CreatePipe - mcneel/rhinocommon-api-docs GitHub Wiki
Brep.CreatePipe Method (Curve, IEnumerable(Double), IEnumerable(Double), Boolean, PipeCapMode, Boolean, Double, Double)
Creates a single walled pipe
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static Brep[] CreatePipe(
Curve rail,
IEnumerable<double> railRadiiParameters,
IEnumerable<double> radii,
bool localBlending,
PipeCapMode cap,
bool fitRail,
double absoluteTolerance,
double angleToleranceRadians
)
VB
Public Shared Function CreatePipe (
rail As Curve,
railRadiiParameters As IEnumerable(Of Double),
radii As IEnumerable(Of Double),
localBlending As Boolean,
cap As PipeCapMode,
fitRail As Boolean,
absoluteTolerance As Double,
angleToleranceRadians As Double
) As Brep()
- rail
- Type: Rhino.Geometry.Curve
the path curve for the pipe - railRadiiParameters
- Type: System.Collections.Generic.IEnumerable(Double)
one or more normalized curve parameters where changes in radius occur. Important: curve parameters must be normalized - ranging between 0.0 and 1.0. - radii
- Type: System.Collections.Generic.IEnumerable(Double)
An array of radii - one at each normalized curve parameter in railRadiiParameters. - localBlending
- Type: System.Boolean
If True, Local (pipe radius stays constant at the ends and changes more rapidly in the middle) is applied. If False, Global (radius is linearly blended from one end to the other, creating pipes that taper from one radius to the other) is applied - cap
- Type: Rhino.Geometry.PipeCapMode
end cap mode - fitRail
- Type: System.Boolean
If the curve is a polycurve of lines and arcs, the curve is fit and a single surface is created; otherwise the result is a polysurface with joined surfaces created from the polycurve segments. - absoluteTolerance
- Type: System.Double
The sweeping and fitting tolerance. If you are unsure what to use, then use the document's absolute tolerance - angleToleranceRadians
- Type: System.Double
The angle tolerance. If you are unsure what to use, then either use the document's angle tolerance in radians
Type: Brep[]
Array of created pipes on success
Supported in: 6.0.16224.21491, 5D58w