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

## Attributes (16)

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