Click or drag to resize

MeshCreateFromCurvePipe Method

Constructs a new mesh pipe from a curve.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 6.0
Syntax
public static Mesh CreateFromCurvePipe(
	Curve curve,
	double radius,
	int segments,
	int accuracy,
	MeshPipeCapStyle capType,
	bool faceted,
	IEnumerable<Interval> intervals = null
)

Parameters

curve
Type: Rhino.GeometryCurve
A curve to pipe.
radius
Type: SystemDouble
The radius of the pipe, a measure from the curve to the surface of the mesh pipe.
segments
Type: SystemInt32
The number of mesh faces that surround the curve. For example with three segments, the cross-section of the pipe looks like an equilateral triangle. The more segments there are, the rounder the pipe is.
accuracy
Type: SystemInt32
The accuracy of the pipe. Changes the visual fidelity of the pipe along the curve. Higher value means that the center of the pipe is closer to the curve. By increasing the accuracy, the mesh will get more faces along the curve.
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. This setting only affects the normals of the pipe mesh.
intervals (Optional)
Type: System.Collections.GenericIEnumerableInterval
A series of intervals to pipe, or null to pipe the entire curve.

Return Value

Type: Mesh
A new mesh if successful, or null on failure.
See Also