Debian Codegraph @

doc/man/man3/ivm/nodes/SoFaceSet.ivm

raw
1 NAME SoFaceSet SoFset "" { polygonal face shape node }
2
3 INCLUDE nodes/SoFaceSet.h
4
5 DESC {
6 This node represents a 3D shape formed by constructing faces
7 (polygons) from vertices located at the coordinates
8 specified in the \vvertexProperty\. field (from \cSoVertexShape\.),
9 or the current inherited state.
10 For optimal performance, the \vvertexProperty\. field is recommended.
11 \p
12 \cSoFaceSet\. uses the coordinates in order, starting with the
13 first one.
14 Each face has a number of
15 vertices specified by a value in the \vnumVertices\. field. For
16 example, an \cSoFaceSet\. with
17 \vnumVertices\. of [3,4,4] would use coordinates 1, 2, and 3 for the
18 first face, coordinates 4, 5, 6, and 7 for the second face, and
19 coordinates 8, 9, 10, and 11 for the third.
20 For improved performance, arrange all the faces with only 3
21 vertices at beginning of the list, then all faces with 4 vertices,
22 and finally all other faces.
23 \p
24 The number of values in the \vnumVertices\. field indicates the
25 number of faces in the set.
26 \p
27 The coordinates of the face set are transformed by the current
28 cumulative transformation. The faces are drawn with the current light
29 model and drawing style.
30 \p
31 Treatment of the current material and normal binding is as follows:
32 The \kPER_PART\. and \kPER_FACE\. bindings specify a material or
33 normal for each face. The \k_INDEXED\. bindings are equivalent to
34 their non-indexed counterparts. The default material binding is
35 \kOVERALL\.. The default normal binding is
36 \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 numVertices { Number of vertices per face. }
46
47 METHOD "" SoFaceSet() { Creates a face set node with default settings. }
48
49 METHOD "" static SoType getClassTypeId() {
50 Returns type identifier for this class.
51 }
52
53 ACTION SoGLRenderAction {
54 Draws faces based on the current coordinates, normals, materials,
55 drawing style, and so on.
56 }
57
58 ACTION SoRayPickAction {
59 Picks faces based on the current coordinates and transformation.
60 Details about the intersection are returned in an \cSoFaceDetail\..
61 }
62
63 ACTION SoGetBoundingBoxAction {
64 Computes the bounding box that encloses all vertices of the face set
65 with the current transformation applied to them. Sets the center to
66 the average of the coordinates of all vertices.
67 }
68
69 ACTION SoCallbackAction {
70 If any triangle callbacks are registered with the action, they will
71 be invoked for each successive triangle generated from each face in
72 the set.
73 }
74
75 ALSO {
76 SoCoordinate3,
77 SoDrawStyle,
78 SoIndexedFaceSet,
79 SoFaceDetail,
80 SoVertexProperty
81 }