| 1 |
NAME SoQuadMesh SoQMesh "" { quadrilateral mesh shape node } |
| 2 |
|
| 3 |
INCLUDE nodes/SoQuadMesh.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
This shape node constructs quadrilaterals 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 |
\cSoQuadMesh\. uses the coordinates, |
| 13 |
in order, starting with the first one. |
| 14 |
The number of vertices in the columns and rows of the mesh are |
| 15 |
specified by the \vverticesPerColumn\. and \vverticesPerRow\. |
| 16 |
fields. (Note that these numbers are 1 greater than the number of |
| 17 |
quadrilaterals per row and per column.) |
| 18 |
\p |
| 19 |
For example, an \cSoQuadMesh\. with |
| 20 |
\vverticesPerColumn\. of 3, and \vverticesPerRow\. of 4 would use |
| 21 |
coordinates 1, 2, 3, and 4 for the first row of vertices, coordinates |
| 22 |
5, 6, 7, and 8 for the second row, and coordinates 9, 10, 11, and 12 |
| 23 |
for the third (last) row. The result is a mesh of 3 quadrilaterals |
| 24 |
across by 2 down. Note: non-planar quadrilaterals formed by a quad |
| 25 |
mesh may cause interesting but unpredictable results. |
| 26 |
\p |
| 27 |
The coordinates of the mesh are transformed by the current cumulative |
| 28 |
transformation. The mesh is drawn with the current light model and |
| 29 |
drawing style. |
| 30 |
\p |
| 31 |
Treatment of the current material and normal binding is as follows: |
| 32 |
The \kPER_PART\. binding specifies a material or normal for each row |
| 33 |
of the mesh. The \kPER_FACE\. binding specifies a material or normal |
| 34 |
for each quadrilateral. The \k_INDEXED\. bindings are equivalent to |
| 35 |
their non-indexed counterparts. The default material binding is |
| 36 |
\kOVERALL\.. The default normal binding is \kPER_VERTEX\.. |
| 37 |
\p |
| 38 |
If any normals (or materials) are specified, Inventor assumes |
| 39 |
you provide the correct number of them, as indicated by the binding. |
| 40 |
You will see unexpected results |
| 41 |
if you specify fewer normals (or materials) than the shape requires. |
| 42 |
If no normals are specified, they will be generated automatically. |
| 43 |
} |
| 44 |
|
| 45 |
FIELD verticesPerColumn {} |
| 46 |
FIELD verticesPerRow { Number of vertices per column and row. } |
| 47 |
|
| 48 |
METHOD "" SoQuadMesh() { |
| 49 |
Creates a quadrilateral mesh 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 a mesh based on the current coordinates, normals, materials, |
| 58 |
drawing style, and so on. |
| 59 |
} |
| 60 |
|
| 61 |
ACTION SoRayPickAction { |
| 62 |
Picks on the mesh based on the current coordinates and transformation. |
| 63 |
Details about the intersection are returned in an \cSoFaceDetail\.. |
| 64 |
} |
| 65 |
|
| 66 |
ACTION SoGetBoundingBoxAction { |
| 67 |
Computes the bounding box that encloses all vertices of the mesh |
| 68 |
with the current transformation applied to them. Sets the center to |
| 69 |
the average of the coordinates of all vertices. |
| 70 |
} |
| 71 |
|
| 72 |
ACTION SoCallbackAction { |
| 73 |
If any triangle callbacks are registered with the action, they will |
| 74 |
be invoked for each successive triangle forming the quadrilaterals |
| 75 |
of the mesh. |
| 76 |
} |
| 77 |
|
| 78 |
ALSO { |
| 79 |
SoCoordinate3, |
| 80 |
SoDrawStyle, |
| 81 |
SoFaceDetail, |
| 82 |
SoFaceSet, |
| 83 |
SoTriangleStripSet, |
| 84 |
SoVertexProperty |
| 85 |
} |