Click or drag to resize

SubDCreateFromSweep Method (NurbsCurve, NurbsCurve, IEnumerableNurbsCurve, Boolean, Boolean)

Fits a SubD through a series of profile curves that define the SubD cross-sections and two curves that defines SubD edges.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 7.0
Syntax
public static SubD CreateFromSweep(
	NurbsCurve rail1,
	NurbsCurve rail2,
	IEnumerable<NurbsCurve> shapes,
	bool closed,
	bool addCorners
)

Parameters

rail1
Type: Rhino.GeometryNurbsCurve
The first SubD-friendly NURBS curve to sweep along.
rail2
Type: Rhino.GeometryNurbsCurve
The second SubD-friendly NURBS curve to sweep along.
shapes
Type: System.Collections.GenericIEnumerableNurbsCurve
An enumeration of SubD-friendly NURBS curves to sweep through.
closed
Type: SystemBoolean
Creates a SubD that is closed in the rail curve direction.
addCorners
Type: SystemBoolean
With open curves, adds creased vertices to the SubD at both ends of the first and last curves.

Return Value

Type: SubD
A new SubD if successful, or null on failure.
Remarks
Shape curves must be in the proper order and orientation. Shape curves must have the same point counts and rail curves must have the same point counts. Shape curves will relocated to the nearest pair of Greville points on the rails. Shape curves will be made at each pair of rail edit points where there isn't an input shape.
See Also