Skip to content

SubD.CreateFromSweep (NurbsCurve, IEnumerable.NurbsCurve., Boolean, Boolean, Boolean, Vector3d)

Public Class

Fits a SubD through a series of profile curves that define the SubD cross-sections and one curve that defines a SubD edge.

Namespace: Rhino.Geometry

Assembly: RhinoCommon (in RhinoCommon.dll)

**Since:**7.0

Syntax

public static SubD CreateFromSweep(
NurbsCurve rail1,
IEnumerable<NurbsCurve> shapes,
bool closed,
bool addCorners,
bool roadlikeFrame,
Vector3d roadlikeNormal
)

Parameters

rail1

Type: Rhino.Geometry.NurbsCurve
A SubD-friendly NURBS curve to sweep along.

shapes

Type:System.Collections.Generic.IEnumerable. NurbsCurve.
An enumeration of SubD-friendly NURBS curves to sweep through.

closed

Type:System.Boolean
Creates a SubD that is closed in the rail curve direction.

addCorners

Type:System.Boolean
With open curves, adds creased vertices to the SubD at both ends of the first and last curves.

roadlikeFrame

Type:System.Boolean
Determines how sweep frame rotations are calculated. If false (Freeform), frame are propagated based on a reference direction taken from the rail curve curvature direction. If true (Roadlike), frame rotations are calculated based on a vector supplied in “roadlikeNormal” and the world coordinate system.

roadlikeNormal

Type: Rhino.Geometry.Vector3d
If roadlikeFrame = true, provide 3D vector used to calculate the frame rotations for sweep shapes. If roadlikeFrame = false, then pass

.

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.