Stores detail information about vertex-based shapes made of faces. More...
#include <Inventor/details/SoFaceDetail.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoFaceDetail () | |
virtual | ~SoFaceDetail () |
int32_t | getNumPoints () const |
const SoPointDetail * | getPoint (int i) const |
int32_t | getFaceIndex () const |
int32_t | getPartIndex () const |
virtual SoDetail * | copy () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Stores detail information about vertex-based shapes made of faces.
This class contains detail information about a face in a vertex-based shape made of faces. The information includes the number of points in the face, the points forming the vertices of the face, and the index of the face within the shape.
Note that when an SoFaceDetail is returned from picking (in an SoPickedPoint), it will contain details for all points defining the face that was intersected. However, when an SoFaceDetail is created for a triangle produced during primitive generation (in an SoPrimitiveVertex), it will contain details for only the three vertices of the triangle.
SoDetail, SoPickedPoint, SoPrimitiveVertex, SoVertexShape
SoFaceDetail::SoFaceDetail | ( | ) |
Constructor.
virtual SoFaceDetail::~SoFaceDetail | ( | ) | [virtual] |
Destructor.
virtual SoDetail* SoFaceDetail::copy | ( | ) | const [virtual] |
Returns an instance that is a copy of this instance. The caller is responsible for deleting the copy when it is no longer needed.
Implements SoDetail.
Reimplemented in MoFaceDetail, MoFaceDetailI, MoFaceDetailIj, and MoFaceDetailIjk.
static SoType SoFaceDetail::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoDetail.
Reimplemented in MoFaceDetail, MoFaceDetailI, MoFaceDetailIj, and MoFaceDetailIjk.
int32_t SoFaceDetail::getFaceIndex | ( | ) | const [inline] |
Returns the index of the face within the shape.
int32_t SoFaceDetail::getNumPoints | ( | ) | const [inline] |
Returns the number of points in the face.
int32_t SoFaceDetail::getPartIndex | ( | ) | const [inline] |
Returns the index of the part containing the face within the shape.
const SoPointDetail* SoFaceDetail::getPoint | ( | int | i | ) | const [inline] |
Returns information about the point forming the i'th vertex of the face, represented as an SoPointDetail.
virtual SoType SoFaceDetail::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
Reimplemented in MoFaceDetail, MoFaceDetailI, MoFaceDetailIj, and MoFaceDetailIjk.