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);
The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition SbVec2f.h:36
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:37
SbVec3f & setValue(const float v[3])
Definition SbVec3f.cpp:461
The SbVec4f class is a 4 dimensional vector with floating point coordinates.
Definition SbVec4f.h:34
The SoDetail class is the superclass for all classes storing detailed information about particular sh...
Definition SoDetail.h:30
The SoPrimitiveVertex class represents a single vertex of a generated primitive.
Definition SoPrimitiveVertex.h:33
void setNormal(float nx, float ny, float nz)
Definition SoPrimitiveVertex.h:48
void setTextureCoords(float tx, float ty, float tz, float tw)
Definition SoPrimitiveVertex.h:54
void setTextureCoords(float tx, float ty, float tz)
Definition SoPrimitiveVertex.h:52
void setTextureCoords(float tx, float ty)
Definition SoPrimitiveVertex.h:50
void setPoint(float x, float y, float z)
Definition SoPrimitiveVertex.h:46
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Thu Jan 16 2025 for Coin by Doxygen. 1.12.0