1 #ifndef COIN_SONORMALCACHE_H
2 #define COIN_SONORMALCACHE_H
27 #include <Inventor/SbVec3f.h>
28 #include <Inventor/caches/SoCache.h>
29 #include <Inventor/system/inttypes.h>
41 void set(
const int num,
const SbVec3f *
const normals);
44 int getNum(
void)
const;
45 const SbVec3f *getNormals(
void)
const;
47 int getNumIndices(
void)
const;
48 const int32_t *getIndices(
void)
const;
50 void generatePerVertex(
const SbVec3f *
const coords,
51 const unsigned int numcoords,
52 const int32_t *coordindices,
53 const int numcoordindices,
54 const float crease_angle,
55 const SbVec3f *facenormals = NULL,
56 const int numfacenormals = -1,
57 const SbBool ccw = TRUE,
58 const SbBool tristrip = FALSE);
61 void generatePerFace(
const SbVec3f *
const coords,
62 const unsigned int numcoords,
63 const int32_t *coordindices,
64 const int numcoorindices,
67 void generatePerFaceStrip(
const SbVec3f *
const coords,
68 const unsigned int numcoords,
69 const int32_t *coordindices,
70 const int numcoorindices,
73 void generatePerStrip(
const SbVec3f *
const coords,
74 const unsigned int numcoords,
75 const int32_t *coordindices,
76 const int numcoorindices,
79 void generatePerVertexQuad(
const SbVec3f *
const coords,
80 const unsigned int numcoords,
85 void generatePerFaceQuad(
const SbVec3f *
const coords,
86 const unsigned int numcoords,
91 void generatePerRowQuad(
const SbVec3f *
const coords,
92 const unsigned int numcoords,
98 SoNormalCacheP * pimpl;
99 void clearGenerator(
void);
102 #endif // !COIN_SONORMALCACHE_H
The SoNormalCache class is used to hold cached normals.As an extension to the original SGI Open Inven...
Definition: SoNormalCache.h:34
The SoState class manages the Coin scenegraph traversal state data.The SoState class is used by actio...
Definition: SoState.h:35
The SbVec3f class is a 3 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec3f.h:40
The SoNormalGenerator class is used to generate normals.FIXME: document properly. ...
Definition: SoNormalGenerator.h:32
The SoCache class is the superclass for all internal cache classes.It organizes reference counting to...
Definition: SoCache.h:34