| 1 |
NAME SoTriangleStripSet SoTriStripSet "" { triangle strip set shape node } |
| 2 |
|
| 3 |
INCLUDE nodes/SoTriangleStripSet.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
This shape node constructs triangle strips out of vertices. |
| 7 |
The vertices may be specified in |
| 8 |
the \vvertexProperty\. field (from \cSoVertexShape\.), |
| 9 |
or by the current inherited coordinates. |
| 10 |
For optimal performance, the \vvertexProperty\. field is recommended. |
| 11 |
\p |
| 12 |
\cSoTriangleStripSet\. is one of the fastest ways of drawing |
| 13 |
polygonal objects in Inventor. It uses the current |
| 14 |
coordinates, in order, starting with the first one. |
| 15 |
The values in the \vnumVertices\. field indicate |
| 16 |
the number of vertices to use for each triangle strip in the set. The |
| 17 |
number of values in this field determines the number of strips. |
| 18 |
\p |
| 19 |
For example, if |
| 20 |
\vnumVertices\. has the values [3,5], coordinates 1, 2, and 3 would be |
| 21 |
used for the first triangle strip and coordinates 4, 5, 6, 7, and 8 |
| 22 |
would be used for the second strip. This would result in 1 triangle in |
| 23 |
the first strip and 3 in the second. |
| 24 |
\p |
| 25 |
The coordinates of the strips are transformed by the current |
| 26 |
cumulative transformation. The strips are drawn with the current light |
| 27 |
model and drawing style. |
| 28 |
\p |
| 29 |
Treatment of the current material and normal binding is as follows: |
| 30 |
The \kPER_PART\. binding specifies a material or normal for each strip |
| 31 |
of the set. The \kPER_FACE\. binding specifies a material or normal |
| 32 |
for each triangle. The \k_INDEXED\. bindings are equivalent to |
| 33 |
their non-indexed counterparts. The default normal binding is |
| 34 |
\kPER_VERTEX\.. The default material binding is |
| 35 |
\kOVERALL\.. |
| 36 |
\p |
| 37 |
If any normals (or materials) are specified, Inventor assumes |
| 38 |
you provide the correct number of them, as indicated by the binding. |
| 39 |
You will see unexpected results |
| 40 |
if you specify fewer normals (or materials) than the shape requires. |
| 41 |
If no normals are specified, they will be generated automatically. |
| 42 |
} |
| 43 |
|
| 44 |
FIELD numVertices { |
| 45 |
Number of vertices in each triangle strip. The number of strips is |
| 46 |
equal to the number of values in this field. |
| 47 |
} |
| 48 |
|
| 49 |
METHOD "" SoTriangleStripSet() { |
| 50 |
Creates a triangle strip set node with default settings. |
| 51 |
} |
| 52 |
|
| 53 |
METHOD "" static SoType getClassTypeId() { |
| 54 |
Returns type identifier for this class. |
| 55 |
} |
| 56 |
|
| 57 |
ACTION SoGLRenderAction { |
| 58 |
Draws a strip set based on the current coordinates, normals, |
| 59 |
materials, drawing style, and so on. |
| 60 |
} |
| 61 |
|
| 62 |
ACTION SoRayPickAction { |
| 63 |
Picks on the strip set based on the current coordinates and |
| 64 |
transformation. Details about the intersection are returned in an |
| 65 |
\cSoFaceDetail\.. |
| 66 |
} |
| 67 |
|
| 68 |
ACTION SoGetBoundingBoxAction { |
| 69 |
Computes the bounding box that encloses all vertices of the strip set |
| 70 |
with the current transformation applied to them. Sets the center to |
| 71 |
the average of the coordinates of all vertices. |
| 72 |
} |
| 73 |
|
| 74 |
ACTION SoCallbackAction { |
| 75 |
If any triangle callbacks are registered with the action, they will be |
| 76 |
invoked for each successive triangle forming the strips of the set. |
| 77 |
} |
| 78 |
|
| 79 |
ALSO { |
| 80 |
SoCoordinate3, |
| 81 |
SoDrawStyle, |
| 82 |
SoFaceDetail, |
| 83 |
SoFaceSet, |
| 84 |
SoIndexedTriangleStripSet, |
| 85 |
SoQuadMesh, |
| 86 |
SoVertexProperty |
| 87 |
} |