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);
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:40
The SoCache class is the superclass for all internal cache classes.
Definition SoCache.h:34
The SoNormalCache class is used to hold cached normals.
Definition SoNormalCache.h:34
The SoNormalGenerator class is used to generate normals.
Definition SoNormalGenerator.h:32
The SoState class manages the Coin scenegraph traversal state data.
Definition SoState.h:35
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.