Go to: Related nodes. Attributes.

Compute a NURBS square given the length of two adjacent sides, number of spans, degree, center and normal of the plane. The square is created about the specified center to lie on the plane.

The length of two adjacent sides on the square can be controlled using the attributes "sideLength1" and "sideLength2". The square could be created on the desired plane using the attributes "normal" and "center".
By default, a unit square of degree 3 is created around the origin on the XY plane i.e. Z = 0.

The resolution of the square can be controlled by specifying the number of "spansPerSide" on the square. The degree of the NURBS curves describing the square can be controlled using the attribute "degree".
The four output NURBS curves corresponding to the edges of the square can be obtained at the output attributes "aOutCurve1", "aOutCurve2", "aOutCurve3" and "aOutCurve4" respectively.



The degree of the square can be 1, 2, 3, 5 or 7.

Node nameParentsMFn typeCompatible function sets
makeNurbsSquareabstractBaseCreatekNurbsSquarekBase
kNamedObject
kDependencyNode
kCreate
kNurbsSquare

Related nodes

revolve, extrude, loft

Attributes (16)

center, centerX, centerY, centerZ, degree, normal, normalX, normalY, normalZ, outputCurve1, outputCurve2, outputCurve3, outputCurve4, sideLength1, sideLength2, spansPerSide

Long name (short name)TypeDefaultFlags
normal (nr) double3outputinputconnectablestorable
The normal of the plane in which the square will lie.
normalX (nrx) distance (double)0cmoutputinputconnectablestorablekeyable
X of the normal direction.
normalY (nry) distance (double)0cmoutputinputconnectablestorablekeyable
Y of the normal direction.
normalZ (nrz) distance (double)1cmoutputinputconnectablestorablekeyable
Z of the normal direction.
center (c) double3outputinputconnectablestorable
The center point of the square.
centerX (cx) distance (double)0cmoutputinputconnectablestorablekeyable
X of the center point.
centerY (cy) distance (double)0cmoutputinputconnectablestorablekeyable
Y of the center point.
centerZ (cz) distance (double)0cmoutputinputconnectablestorablekeyable
Z of the center point.
sideLength1 (sl1) distance (double)1.0cmoutputinputconnectablestorablekeyable
The length of a side on the square.
sideLength2 (sl2) distance (double)1.0cmoutputinputconnectablestorablekeyable
The length of an adjacent side on the square.
degree (d) enum3outputinputconnectablestorablekeyable
The degree of the resulting circle: 1 - linear, 2 - quadratic, 3 - cubic, 5 - quintic, 7 - heptic
spansPerSide (sps) integer1outputinputconnectablestorablekeyable
The number of spans per side determines the resolution of the square.
outputCurve1 (oc1) nurbsCurveNULLoutputconnectable
Output Curve 1 - left square segment.
outputCurve2 (oc2) nurbsCurveNULLoutputconnectable
Output Curve 2 - top square segment.
outputCurve3 (oc3) nurbsCurveNULLoutputconnectable
Output Curve 3 - right square segment.
outputCurve4 (oc4) nurbsCurveNULLoutputconnectable
Output Curve 4 - bottom square segment.