55#ifndef _SO_PRIMITIVE_VERTEX_
56#define _SO_PRIMITIVE_VERTEX_
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
Base class for describing detail information about a shape node.
Represents a vertex of a generated primitive.
const SbVec3f & getNormal() const
These return the surface point, normal, and texture coordinates in object space.
void setNormal(const SbVec3f &norm)
const SbVec3f & getPoint() const
These return the surface point, normal, and texture coordinates in object space.
SoPrimitiveVertex(const SoPrimitiveVertex &pv)
Constructors and destructor.
const SbVec4f & getTextureCoords() const
These return the surface point, normal, and texture coordinates in object space.
void setPoint(const SbVec3f &pt)
These methods are typically called by shape classes during primtiive generation.
void setDetail(SoDetail *d)
Sets the detail corresponding to the vertex.
void setMaterialIndex(int index)
Sets the material index. The index is set to 0 during construction.
~SoPrimitiveVertex()
Constructors and destructor.
const SoDetail * getDetail() const
Returns the detail giving more information about the vertex.
SoPrimitiveVertex()
Constructors and destructor.
int getMaterialIndex() const
Returns the index into the current set of materials of the material active at the vertex.
void setTextureCoords(const SbVec4f &t)