| 1 |
NAME SoNurbsSurface SoNurbs "" { NURBS surface shape node } |
| 2 |
|
| 3 |
INCLUDE nodes/SoNurbsSurface.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
This shape node represents a NURBS surface based on the node's knot |
| 7 |
vectors and on control points constructed from the current |
| 8 |
coordinates. The current coordinates are used in row-major order (the |
| 9 |
V direction corresponds to the rows). The number of coordinates used |
| 10 |
is determined by the \vnumUControlPoints\. and \vnumVControlPoints\. |
| 11 |
fields. The \vuKnotVector\. and \vvKnotVector\. fields contain |
| 12 |
floating point arrays of non-decreasing values. |
| 13 |
\p |
| 14 |
The order of the surface in the U and V directions is defined as the |
| 15 |
number of knots minus the number of control points in the particular |
| 16 |
direction. The largest order allowed for a NURBS surface is 8. |
| 17 |
\p |
| 18 |
The control points of the NURBS surface are transformed by the current |
| 19 |
cumulative transformation. The surface is drawn with the current light |
| 20 |
model and drawing style. The coordinates, normals, and texture |
| 21 |
coordinates of a surface are generated, so you cannot bind explicit |
| 22 |
normals or texture coordinates to a NURBS surface. The first material |
| 23 |
in the state is applied to the entire surface. |
| 24 |
\p |
| 25 |
The surface is trimmed according to the currently defined profile's curves. |
| 26 |
\p |
| 27 |
When default texture coordinates are applied to a NURBS surface, the |
| 28 |
edges of the texture square are stretched to fit the surface. The axes |
| 29 |
of the texture are called S and T; S is horizontal and T is vertical. |
| 30 |
The axes of the NURBS surface are called U and V; U is horizontal and |
| 31 |
V is vertical. You can also define texture coordinates explicitly with |
| 32 |
the S,T location point, the knot vectors, and the current texture |
| 33 |
coordinates. |
| 34 |
\p |
| 35 |
The approximation of the surface by polygons is affected by the |
| 36 |
current complexity value. |
| 37 |
} |
| 38 |
|
| 39 |
FIELD numUControlPoints {} |
| 40 |
FIELD numVControlPoints { Number of control points in the U and V directions. } |
| 41 |
FIELD numSControlPoints {} |
| 42 |
FIELD numTControlPoints { Number of control points in the S and T directions. } |
| 43 |
FIELD uKnotVector {} |
| 44 |
FIELD vKnotVector { The knot vectors in the U and V directions. } |
| 45 |
FIELD sKnotVector {} |
| 46 |
FIELD tKnotVector { The knot vectors in the S and T directions. } |
| 47 |
|
| 48 |
METHOD "" SoNurbsSurface() { |
| 49 |
Creates a NURBS surface node with default settings. |
| 50 |
} |
| 51 |
|
| 52 |
METHOD "" static SoType getClassTypeId() { |
| 53 |
Returns type identifier for this class. |
| 54 |
} |
| 55 |
|
| 56 |
ACTION SoGLRenderAction { |
| 57 |
Draws the surface based on the current coordinates, material, and so on. |
| 58 |
} |
| 59 |
|
| 60 |
ACTION SoRayPickAction { |
| 61 |
Picks the surface based on the current coordinates and transformation. |
| 62 |
} |
| 63 |
|
| 64 |
ACTION SoGetBoundingBoxAction { |
| 65 |
Computes the bounding box that encloses all control points of the |
| 66 |
surface with the current transformation applied to them. Sets the |
| 67 |
center to the average of the control points. |
| 68 |
} |
| 69 |
|
| 70 |
ACTION SoCallbackAction { |
| 71 |
If any triangle callbacks are registered with the action, they will be |
| 72 |
invoked for each successive triangle approximating the surface. |
| 73 |
} |
| 74 |
|
| 75 |
ALSO { |
| 76 |
SoIndexedNurbsSurface, |
| 77 |
SoNurbsCurve, |
| 78 |
SoProfile |
| 79 |
} |