Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoFaceDetail Class Reference

Stores detail information about vertex-based shapes made of faces. More...

#include <Inventor/details/SoFaceDetail.h>

+ Inheritance diagram for SoFaceDetail:

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 SoPointDetailgetPoint (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 SoDetailcopy () 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.
 

Detailed Description

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.

SEE ALSO

SoDetail, SoPickedPoint, SoPrimitiveVertex, SoVertexShape

Definition at line 92 of file SoFaceDetail.h.

Constructor & Destructor Documentation

◆ SoFaceDetail()

SoFaceDetail::SoFaceDetail ( )

Constructor.

◆ ~SoFaceDetail()

virtual SoFaceDetail::~SoFaceDetail ( )
virtual

Destructor.

Member Function Documentation

◆ copy()

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.

◆ getClassTypeId()

static SoType SoFaceDetail::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ getFaceIndex()

int32_t SoFaceDetail::getFaceIndex ( ) const

Returns the index of the face within the shape.

◆ getNumPoints()

int32_t SoFaceDetail::getNumPoints ( ) const

Returns the number of points in the face.

◆ getPartIndex()

int32_t SoFaceDetail::getPartIndex ( ) const

Returns the index of the part containing the face within the shape.

◆ getPoint()

const SoPointDetail * SoFaceDetail::getPoint ( int  i) const

Returns information about the point forming the i'th vertex of the face, represented as an SoPointDetail.

◆ getTypeId()

virtual SoType SoFaceDetail::getTypeId ( ) const
virtual

Returns the type identifier for this specific instance.

Implements SoTypedObject.

Reimplemented in MoFaceDetail, MoFaceDetailI, MoFaceDetailIj, and MoFaceDetailIjk.


The documentation for this class was generated from the following file: