Debian Codegraph @

doc/man/man3/ivm/nodes/SoIndexedShape.ivm

raw
1 NAME SoIndexedShape SoInd "" {
2 abstract base class for all indexed vertex-based shapes
3 }
4
5 INCLUDE nodes/SoIndexedShape.h
6
7 DESC {
8 This node is the abstract base class for all vertex-based shapes that
9 are constructed from indices, including \cSoIndexedFaceSet\.,
10 \cSoIndexedTriangleStripSet\., and \cSoIndexedLineSet\..
11 \cSoIndexedShape\. defines fields that are used in all of its
12 subclasses.
13 \p
14 All subclasses of \cSoNonIndexedShape\. construct objects by using the
15 coordinates specified by the \vvertexProperty\. field
16 (from \cSoVertexShape\.), or the current inherited coordinates.
17 The \vcoordIndex\.
18 field defined by this class contains the indices into the current
19 coordinates of the vertices of the shape. These indices are also used
20 for materials, normals, or texture coordinates when the appropriate
21 binding is \kPER_VERTEX_INDEXED\..
22 \p
23 Material and normal bindings are interpreted as follows for each subclass:
24 \b
25 \kOVERALL\. One material for the entire shape.
26 \kPER_PART\. Specific to the subclass.
27 \kPER_PART_INDEXED\. Same as \kPER_PART\., using indices from the
28 \vmaterialIndex\. or \vnormalIndex\. field.
29 \kPER_FACE\. Specific to the subclass.
30 \kPER_FACE_INDEXED\. Same as \kPER_FACE\., using indices from the
31 \vmaterialIndex\. or \vnormalIndex\. field.
32 \kPER_VERTEX\. One material per vertex.
33 \kPER_VERTEX_INDEXED\. One material per vertex, using indices from the
34 \vmaterialIndex\. or \vnormalIndex\. field.
35 \.
36 \p
37 When any \k_INDEXED\. binding is used for materials or normals, the
38 \vmaterialIndex\. or \vnormalIndex\. field is used to determine the
39 indices for the materials or normals. If this field contains a single
40 value of -1 (the default), the coordinate indices from the
41 \vcoordIndex\. field are used as well for materials or normals. When
42 the binding is \kPER_VERTEX_INDEXED\., indices in these fields that
43 correspond to negative indices in \vcoordIndex\. are skipped; for
44 other index bindings all the values in the fields are used, in order.
45 \p
46 Explicit texture coordinates (as defined by \cSoTextureCoordinate2\.)
47 may be bound to vertices of an indexed
48 shape consecutively (if the texture coordinate binding is
49 \kPER_VERTEX\.) or by using the indices in the \vtextureCoordIndex\.
50 field (if the binding is \kPER_VERTEX_INDEXED\.). As with all
51 vertex-based shapes, if there is a current texture but no texture
52 coordinates are specified, a default texture coordinate mapping is
53 calculated using the bounding box of the shape.
54 \p
55 Be sure that the indices contained in the \vcoordIndex\.,
56 \vmaterialIndex\., \vnormalIndex\., and \vtextureCoordIndex\. fields
57 are valid with respect to the current state, or errors will occur.
58 }
59
60 FIELD coordIndex {
61 The indices of the coordinates that the shape uses as its vertices.
62 The coordinates connect to form faces, lines, or other shapes. Each
63 subclass defines special negative indices to use to indicate
64 separation between faces, lines, and so on.
65 }
66
67 FIELD materialIndex {}
68 FIELD normalIndex {}
69 FIELD textureCoordIndex {
70 The indices of the materials, normals, and texture coordinates that
71 are used for the shape. These fields are used only when the
72 appropriate binding is one of the \k_INDEXED\. bindings. By default,
73 the values of these fields indicate that the coordinate indices should
74 be used for materials, normals, or texture coordinates as well.
75 }
76
77 METHOD "" static SoType getClassTypeId() {
78 Returns type identifier for this class.
79 }
80
81 ALSO {
82 SoIndexedFaceSet,
83 SoIndexedLineSet,
84 SoIndexedTriangleStripSet,
85 SoMaterialBinding,
86 SoNonIndexedShape,
87 SoNormalBinding,
88 SoShapeHints,
89 SoTextureCoordinateBinding
90 }