Go to: Related nodes. Attributes.

Compute a cube given its center (pivot), normal (axis), and dimensions (width, lengthRatio, and heightRatio). The number of spans in the resulting surface can be controlled by patchesU and patchesV. The resulting planes can have a degree of linear or cubic.

Node nameParentsMFn typeCompatible function sets
makeNurbCubeprimitivekNurbsCubekBase
kNamedObject
kDependencyNode
kCreate
kPrimitive
kNurbsCube

Related nodes

makeNurbPlane, makeNurbSphere, makeNurbCylinder, makeNurbTorus, makeNurbCone

Attributes (11)

degree, heightRatio, lengthRatio, outputSurface1, outputSurface2, outputSurface3, outputSurface4, outputSurface5, patchesU, patchesV, width

Long name (short name)TypeDefaultFlags
degree (d) enum3outputinputconnectablestorable
The degree of the resulting surface. 1 - linear, 2 - quadratic, 3 - cubic, 5 - quintic, 7 - heptic
heightRatio (hr) doubledouble1.0outputinputconnectablestorablekeyable
Ratio of "height" to "width"
lengthRatio (lr) doubledouble1.0outputinputconnectablestorablekeyable
Ratio of "length" to "width"
outputSurface1 (os1) nurbsSurfacenullptroutputconnectable
Output surface 1 - the bottom of the cube
outputSurface2 (os2) nurbsSurfacenullptroutputconnectable
Output surface 2 - the left side of the cube
outputSurface3 (os3) nurbsSurfacenullptroutputconnectable
Output surface 3 - the right of the cube
outputSurface4 (os4) nurbsSurfacenullptroutputconnectable
Output surface 4 - the front side of the cube
outputSurface5 (os5) nurbsSurfacenullptroutputconnectable
Output surface 5 - the back of the cube
patchesU (u) integerint1outputinputconnectablestorablekeyable
Number of sections in U
patchesV (v) integerint1outputinputconnectablestorablekeyable
Number of sections in V
width (w) distance (double)double1.0cmoutputinputconnectablestorablekeyable
Width of the object