Stores detail information about vertex-based shapes made of faces. More...
#include <Inventor/details/SoFaceDetail.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
Returns the type identifier for this specific instance. | |
SoFaceDetail () | |
Constructor. | |
virtual | ~SoFaceDetail () |
Destructor. | |
int32_t | getNumPoints () const |
Returns the number of points in the face. | |
const SoPointDetail * | getPoint (int i) const |
Returns information about the point forming the i'th vertex of the face, represented as an SoPointDetail. | |
int32_t | getFaceIndex () const |
Returns the index of the face within the shape. | |
int32_t | getPartIndex () const |
Returns the index of the part containing the face within the shape. | |
virtual SoDetail * | copy () const |
Returns an instance that is a copy of this instance. | |
Public Member Functions inherited from SoTypedObject | |
SbBool | isOfType (const SoType &type) const |
Returns TRUE if this object is of the type specified in type or is derived from that type. | |
template<typename TypedObjectClass > | |
SbBool | isOfType () const |
Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class. | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
Static Public Member Functions inherited from SoDetail | |
static SoType | getClassTypeId () |
Returns type identifier for this class. | |
Static Public Member Functions inherited from SoTypedObject | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
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
Definition at line 92 of file SoFaceDetail.h.
SoFaceDetail::SoFaceDetail | ( | ) |
Constructor.
|
virtual |
Destructor.
|
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 |
Returns the type identifier for this class.
int32_t SoFaceDetail::getFaceIndex | ( | ) | const |
Returns the index of the face within the shape.
int32_t SoFaceDetail::getNumPoints | ( | ) | const |
Returns the number of points in the face.
int32_t SoFaceDetail::getPartIndex | ( | ) | const |
Returns the index of the part containing the face within the shape.
const SoPointDetail * SoFaceDetail::getPoint | ( | int | i | ) | const |
Returns information about the point forming the i'th vertex of the face, represented as an SoPointDetail.
|
virtual |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
Reimplemented in MoFaceDetail, MoFaceDetailI, MoFaceDetailIj, and MoFaceDetailIjk.