Go to: Related nodes. Attributes.

Rebuild a curve so that its parameterization and/or control points are modified. This may change the shape of the curve. There are five methods with which to rebuild the curve (rebuildType).

uniform- the resulting curve will have uniform parameterization with the specified number of spans (spans) and degree (degree).

reduceSpans- remove redundant knots if possible.

matchKnots- rebuild the input curve so that it matches the parametrization of another curve.

noMults- remove multiple interior knots.

curvature- rebuild the input curve adding more knots where the curvature is highest.

ends - Rebuild the input curve to have multiple or nonmultiple end knots.

Use keepRange and keepEndpoints to control the end conditions of the rebuilt curve.

Node name Parents MFn type Compatible function sets
rebuildCurve abstractBaseCreate kRebuildCurve kBase
kNamedObject
kDependencyNode
kCreate
kRebuildCurve

Related nodes

projectCurve, detachCurve, attachCurve, extendCurve, insertKnotCurve, curveShape, nurbsCurve

Attributes (14)

degree, endKnots, fitRebuild, inputCurve, keepControlPoints, keepEndPoints, keepRange, keepTangents, matchCurve, outputCurve, rebuildType, smartSurfaceCurveRebuild, spans, tolerance

Long name (short name) Type Default Flags
inputCurve (ic) nurbsCurve NULL outputinputconnectable
The curve to rebuild.
matchCurve (mc) nurbsCurve NULL outputinputconnectable
If rebuildType is matchKnots then use this curve's parameterization.
fitRebuild (fr) bool true outputinputconnectablestorable
If true use the least squares fit rebuild. Otherwise use the convert method.
rebuildType (rt) enum 0 outputinputconnectablestorablekeyable
How to rebuild the input curve. 0 - uniform, 1 - reduce spans, 2 - match knots, 3 - remove multiple knots, 4 - curvature 5 - rebuild ends 6 - clean
spans (s) integer 4 outputinputconnectablestorablekeyable
The number of spans in resulting curve Used only if rebuildType is uniform.
degree (d) enum 3 outputinputconnectablestorablekeyable
The degree of the resulting curve 1 - linear, 2 - quadratic, 3 - cubic, 5 - quintic, 7 - heptic
tolerance (tol) distance (double) 0.01cm outputinputconnectablestorablekeyable
The tolerance with which to rebuild.
endKnots (end) enum 0 outputinputconnectablestorablekeyable
End conditions for the curve 0 - uniform end knots, 1 - multiple end knots,
keepRange (kr) enum 1 outputinputconnectablestorablekeyable
Determine the parameterization for the resulting curve. 0 - reparameterize the resulting curve from 0 to 1, 1 - keep the original curve parameterization, 2 - reparameterize the result from 0 to number of spans
keepEndPoints (kep) bool true outputinputconnectablestorablekeyable
If true, keep the endpoints the same.
keepTangents (kt) bool true outputinputconnectablestorablekeyable
If true, keep the end tangents the same.
outputCurve (oc) nurbsCurve NULL outputconnectable
The rebuilt curve.
keepControlPoints (kcp) bool false outputinputconnectablestorablekeyable
If true, the CVs will remain the same. This forces uniform parameterization unless rebuildType is matchKnots.
smartSurfaceCurveRebuild (scr) bool false outputinputconnectablestorable
If true, curve on surface is rebuild in 3D and 2D info is kept