RhinoCommon API
BrepCreatePipe Method (Curve, Double, Boolean, PipeCapMode, Boolean, Double, Double) |
Creates a single walled pipe
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)
public static Brep[] CreatePipe( Curve rail, double radius, bool localBlending, PipeCapMode cap, bool fitRail, double absoluteTolerance, double angleToleranceRadians )
Public Shared Function CreatePipe ( rail As Curve, radius As Double, localBlending As Boolean, cap As PipeCapMode, fitRail As Boolean, absoluteTolerance As Double, angleToleranceRadians As Double ) As Brep()
Parameters
- rail
- Type: Rhino.GeometryCurve
the path curve for the pipe - radius
- Type: SystemDouble
radius of the pipe - localBlending
- Type: SystemBoolean
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.GeometryPipeCapMode
end cap mode - fitRail
- Type: SystemBoolean
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: SystemDouble
The sweeping and fitting tolerance. If you are unsure what to use, then use the document's absolute tolerance - angleToleranceRadians
- Type: SystemDouble
The angle tolerance. If you are unsure what to use, then either use the document's angle tolerance in radians
Return Value
Type: BrepArray of created pipes on success