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 name Parents MFn type Compatible function sets
makeNurbsSquare abstractBaseCreate kNurbsSquare kBase
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) Type Default Flags
normal (nr) double3 outputinputconnectablestorable
The normal of the plane in which the square will lie.
normalX (nrx) distance (double) 0cm outputinputconnectablestorablekeyable
X of the normal direction.
normalY (nry) distance (double) 0cm outputinputconnectablestorablekeyable
Y of the normal direction.
normalZ (nrz) distance (double) 1cm outputinputconnectablestorablekeyable
Z of the normal direction.
center (c) double3 outputinputconnectablestorable
The center point of the square.
centerX (cx) distance (double) 0cm outputinputconnectablestorablekeyable
X of the center point.
centerY (cy) distance (double) 0cm outputinputconnectablestorablekeyable
Y of the center point.
centerZ (cz) distance (double) 0cm outputinputconnectablestorablekeyable
Z of the center point.
sideLength1 (sl1) distance (double) 1.0cm outputinputconnectablestorablekeyable
The length of a side on the square.
sideLength2 (sl2) distance (double) 1.0cm outputinputconnectablestorablekeyable
The length of an adjacent side on the square.
degree (d) enum 3 outputinputconnectablestorablekeyable
The degree of the resulting circle: 1 - linear, 2 - quadratic, 3 - cubic, 5 - quintic, 7 - heptic
spansPerSide (sps) integer 1 outputinputconnectablestorablekeyable
The number of spans per side determines the resolution of the square.
outputCurve1 (oc1) nurbsCurve NULL outputconnectable
Output Curve 1 - left square segment.
outputCurve2 (oc2) nurbsCurve NULL outputconnectable
Output Curve 2 - top square segment.
outputCurve3 (oc3) nurbsCurve NULL outputconnectable
Output Curve 3 - right square segment.
outputCurve4 (oc4) nurbsCurve NULL outputconnectable
Output Curve 4 - bottom square segment.