RhinoCommon API
MeshCreateFromCurvePipe Method |
Constructs a new mesh pipe from a curve.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 6.0

public static Mesh CreateFromCurvePipe( Curve curve, double radius, int segments, int accuracy, MeshPipeCapStyle capType, bool faceted, IEnumerable<Interval> intervals = null )
Public Shared Function CreateFromCurvePipe ( curve As Curve, radius As Double, segments As Integer, accuracy As Integer, capType As MeshPipeCapStyle, faceted As Boolean, Optional intervals As IEnumerable(Of Interval) = Nothing ) As Mesh
Parameters
- curve
- Type: Rhino.GeometryCurve
A curve to pipe. - radius
- Type: SystemDouble
The radius of the pipe. - segments
- Type: SystemInt32
The number of segments in the pipe. - accuracy
- Type: SystemInt32
The accuracy of the pipe. - capType
- Type: Rhino.GeometryMeshPipeCapStyle
The type of cap to be created at the end of the pipe. - faceted
- Type: SystemBoolean
Specifies whether the pipe is faceted, or not. - intervals (Optional)
- Type: System.Collections.GenericIEnumerableInterval
A series of intervals to pipe. This value can be null.
Return Value
Type: MeshA new mesh, or null on failure.
