Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoIndexedTriangleFanSet.h
Go to the documentation of this file.
1#pragma once
2
5
7//
8// Class: SoIndexedTriangleFanSet
9//
10// Indexed set of triangles fans. Fans are separated by the
11// special index SO_END_FAN_INDEX (-1). The N indices in the fan
12// define N-2 triangles, which are formed by indexing into the
13// current coordinates. Depending on the current material and normal
14// binding values, the materials and normals for the triangles or
15// vertices may be accessed in order or indexed. If they are indexed,
16// the materialIndex and normalIndex fields are used.
17//
19
20#define SO_END_FAN_INDEX (-1)
21
23
110{
112 SO_PIMPL_BASE_PUBLIC_HEADER(SoIndexedTriangleFanSet);
113
114public:
119
124
129
130private:
131 virtual void GLRender(SoGLRenderAction* action);
132 virtual void getPrimitiveCount(SoGetPrimitiveCountAction* action);
133 virtual int getNumNeededNormals(SoState* state);
134 virtual void generateDefaultNormals(SoState* state,
135 const SbVec3f* coords,
136 int numCoords,
137 SoNormalBundle* nb,
138 SbBool storeRef = FALSE);
139
141 virtual void shouldGenerateTangents( SoGLRenderAction* /*action*/, const SoShapeStyleElement* /*shapeStyle*/ ) {}
142
143private:
144 static void initClass();
145 static void exitClass();
146 virtual void notify(SoNotList* list);
147
148private:
149 virtual ~SoIndexedTriangleFanSet();
150 virtual void generatePrimitives(SoAction *action);
151};
#define FALSE
Possible value of SbBool.
Definition SbBase.h:75
SO_PIMPL_BASE_PUBLIC_DECLARATION(SoIndexedTriangleFanSet)
#define SO_NODE_HEADER(className)
Definition SoSubNode.h:151
3D vector class.
Definition SbVec.h:932
Abstract base class for all actions.
Definition SoAction.h:132
Renders a scene graph using Open Inventor's Render Engine.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Counts number of...
Abstract base class for all indexed vertex-based shapes.
Indexed triangle fan set shape node.
SoIndexedTriangleFanSet()
Constructs a default IndexedTriangleFanSet.
int getNumTriangles()
Returns the number of triangles.
int getNumFans()
Returns the number of fans (parts)
Stores some information used by shapes.
Traversal state.
Definition SoState.h:74
int SbBool
Boolean type.
Definition SbBase.h:87