Cafu Engine
cf::ClipSys::TraceGenericT Class Reference

This class represents a generic convex solid of arbitrary shape. More...

#include "TraceSolid.hpp"

Inheritance diagram for cf::ClipSys::TraceGenericT:

Public Member Functions

 TraceGenericT ()
 Creates an empty (invalid) trace model. More...
 
void AssignInvTransformed (const TraceSolidT &Other, const math::Matrix3x3dT &Mat)
 Assigns the given solid to this one, transformed by the transpose of the given matrix. More...
 
unsigned int GetNumVertices () const override
 Returns the number of vertices of this solid. More...
 
const Vector3dTGetVertices () const override
 Returns the vertices of this solid. More...
 
unsigned int GetNumPlanes () const override
 Returns the number of planes of this solid. More...
 
const Plane3dTGetPlanes () const override
 Returns the planes of this solid. More...
 
unsigned int GetNumEdges () const override
 Returns the number of edges of this solid. More...
 
const EdgeT * GetEdges () const override
 Returns the edges of this solid. More...
 
- Public Member Functions inherited from cf::ClipSys::TraceSolidT
 TraceSolidT ()
 The constructor. More...
 
virtual ~TraceSolidT ()
 The virtual destructor. More...
 
BoundingBox3dT GetBB () const
 Returns the bounding-box of (the vertices of) this solid. More...
 

Detailed Description

This class represents a generic convex solid of arbitrary shape.

Constructor & Destructor Documentation

TraceGenericT::TraceGenericT ( )

Creates an empty (invalid) trace model.

Member Function Documentation

void TraceGenericT::AssignInvTransformed ( const TraceSolidT Other,
const math::Matrix3x3dT Mat 
)

Assigns the given solid to this one, transformed by the transpose of the given matrix.

Compared to creating a new trace solid, this can significantly reduce or even completely eliminate the required memory (re-)allocations.

const EdgeT* cf::ClipSys::TraceGenericT::GetEdges ( ) const
inlineoverridevirtual

Returns the edges of this solid.

Implements cf::ClipSys::TraceSolidT.

unsigned int cf::ClipSys::TraceGenericT::GetNumEdges ( ) const
inlineoverridevirtual

Returns the number of edges of this solid.

Implements cf::ClipSys::TraceSolidT.

unsigned int cf::ClipSys::TraceGenericT::GetNumPlanes ( ) const
inlineoverridevirtual

Returns the number of planes of this solid.

Implements cf::ClipSys::TraceSolidT.

unsigned int cf::ClipSys::TraceGenericT::GetNumVertices ( ) const
inlineoverridevirtual

Returns the number of vertices of this solid.

Implements cf::ClipSys::TraceSolidT.

const Plane3dT* cf::ClipSys::TraceGenericT::GetPlanes ( ) const
inlineoverridevirtual

Returns the planes of this solid.

Implements cf::ClipSys::TraceSolidT.

const Vector3dT* cf::ClipSys::TraceGenericT::GetVertices ( ) const
inlineoverridevirtual

Returns the vertices of this solid.

Implements cf::ClipSys::TraceSolidT.


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