1 #ifndef COIN_SOPRIMITIVEVERTEX_H
2 #define COIN_SOPRIMITIVEVERTEX_H
27 #include <Inventor/SbVec2f.h>
28 #include <Inventor/SbVec3f.h>
29 #include <Inventor/SbVec4f.h>
38 const SbVec3f & getPoint(
void)
const;
39 const SbVec3f & getNormal(
void)
const;
40 const SbVec4f & getTextureCoords(
void)
const;
41 int getMaterialIndex(
void)
const;
42 const SoDetail * getDetail(
void)
const;
45 void setPoint(
const SbVec3f & point);
47 void setNormal(
const SbVec3f & normal);
48 void setNormal(
float nx,
float ny,
float nz) { normal.setValue(nx, ny, nz); }
49 void setTextureCoords(
const SbVec2f & texcoords);
50 void setTextureCoords(
float tx,
float ty) { textureCoords.setValue(tx, ty, 0.0f, 1.0f); }
51 void setTextureCoords(
const SbVec3f & texcoords);
52 void setTextureCoords(
float tx,
float ty,
float tz) { textureCoords.setValue(tx, ty, tz, 1.0f); }
53 void setTextureCoords(
const SbVec4f & texcoords);
54 void setTextureCoords(
float tx,
float ty,
float tz,
float tw) { textureCoords.setValue(tx, ty, tz, tw); }
56 void setMaterialIndex(
const int index);
67 #endif // !COIN_SOPRIMITIVEVERTEX_H