| 1 |
NAME SoIndexedNurbsSurface SoIndNurbs "" { indexed NURBS surface shape node } |
| 2 |
|
| 3 |
INCLUDE nodes/SoIndexedNurbsSurface.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
|
| 7 |
This shape node represents a NURBS surface based on the knot vectors |
| 8 |
and the control points that you specify. The \vuKnotVector\. and |
| 9 |
\vvKnotVector\. fields specify floating-point arrays of values; the |
| 10 |
values are the coordinates of the knot points in the surface, and you |
| 11 |
must enter them in non-decreasing order. The \vnumUControlPoints\. |
| 12 |
and \vnumVControlPoints\. fields specify the number of control points |
| 13 |
the surface will have in the U and V parametric directions, and will |
| 14 |
use the current coordinates that are indexed from the \vcoordIndex\. |
| 15 |
field. |
| 16 |
|
| 17 |
\p |
| 18 |
|
| 19 |
You can get a surface of minimum order (2) in the U or V directions by |
| 20 |
specifying two more knots than control points in that direction and |
| 21 |
having at least two control points in that direction. This surface |
| 22 |
would appear creased in one direction. |
| 23 |
|
| 24 |
\p |
| 25 |
|
| 26 |
You can get a surface of maximum order (8) in the U or V directions by |
| 27 |
specifying eight more knots than control points in that direction and |
| 28 |
having at least eight control points in that direction. |
| 29 |
|
| 30 |
\p |
| 31 |
|
| 32 |
The control points of the NURBS surface are transformed by the current |
| 33 |
cumulative transformation. The surface is drawn with the current light |
| 34 |
model and drawing style. The coordinates, normals, and texture |
| 35 |
coordinates of a surface are generated, so you cannot bind explicit |
| 36 |
normals or texture coordinates to a NURBS surface. The first material |
| 37 |
in the state is applied to the entire surface. |
| 38 |
\p |
| 39 |
The surface is trimmed according to the currently defined profiles curves. |
| 40 |
|
| 41 |
\p |
| 42 |
|
| 43 |
When default texture coordinates are applied to a NURBS surface, the |
| 44 |
edges of the texture square are stretched to fit the surface. The axes |
| 45 |
of the texture are called S and T; S is horizontal and T is vertical. |
| 46 |
The axes of the NURBS surface are called U and V; U is horizontal and |
| 47 |
V is vertical. You can also define texture coordinates explicitly with |
| 48 |
the S,T location point, the knot vectors, and the current texture |
| 49 |
coordinates. |
| 50 |
} |
| 51 |
|
| 52 |
FIELD numUControlPoints {} |
| 53 |
FIELD numVControlPoints { Number of control points in the U and V directions. } |
| 54 |
FIELD coordIndex { Coordinate indices. } |
| 55 |
FIELD uKnotVector {} |
| 56 |
FIELD vKnotVector { The knot vectors in the U and V directions. } |
| 57 |
FIELD numSControlPoints {} |
| 58 |
FIELD numTControlPoints { Number of control points in the S and T directions. } |
| 59 |
FIELD textureCoordIndex { Texture coordinate indices. } |
| 60 |
FIELD sKnotVector {} |
| 61 |
FIELD tKnotVector { The knot vectors in the S and T directions. } |
| 62 |
|
| 63 |
METHOD "" SoIndexedNurbsSurface() { |
| 64 |
Creates an indexed NURBS surface node with default settings. |
| 65 |
} |
| 66 |
|
| 67 |
METHOD "" static SoType getClassTypeId() { |
| 68 |
Returns type identifier for this class. |
| 69 |
} |
| 70 |
|
| 71 |
ACTION SoGLRenderAction { |
| 72 |
Draws the surface based on the current coordinates, material, and so on. |
| 73 |
} |
| 74 |
|
| 75 |
ACTION SoRayPickAction { |
| 76 |
Picks the surface based on the current coordinates and transformation. |
| 77 |
} |
| 78 |
|
| 79 |
ACTION SoGetBoundingBoxAction { |
| 80 |
Computes the bounding box that encloses all control points of the |
| 81 |
surface with the current transformation applied to them. Sets the |
| 82 |
center to the average of the control points. |
| 83 |
} |
| 84 |
|
| 85 |
ACTION SoCallbackAction { |
| 86 |
If any triangle callbacks are registered with the action, they will be |
| 87 |
invoked for each successive triangle approximating the surface. |
| 88 |
} |
| 89 |
|
| 90 |
ALSO { |
| 91 |
SoIndexedNurbsCurve, |
| 92 |
SoNurbsSurface, |
| 93 |
SoProfile |
| 94 |
} |