Castor3D  ..
Public Member Functions | Static Public Member Functions | Friends | List of all members
Castor3D::Torus Class Reference

The torus representation. More...

+ Inheritance diagram for Castor3D::Torus:
+ Collaboration diagram for Castor3D::Torus:

Public Member Functions

C3D_API Torus ()
 Constructor. More...
 
C3D_API ~Torus ()
 Destructor. More...
 
uint32_t GetInternalNbFaces () const
 Retrieves the internal ellipse faces number. More...
 
uint32_t GetExternalNbFaces () const
 Retrieves the external ellipse faces number. More...
 
real GetInternalRadius () const
 Retrieves the internal ellipse radius. More...
 
real GetExternalRadius () const
 Retrieves the external ellipse radius. More...
 
- Public Member Functions inherited from Castor3D::MeshGenerator
 MeshGenerator (eMESH_TYPE p_eMeshType=eMESH_TYPE_CUSTOM)
 Constructor. More...
 
virtual ~MeshGenerator ()
 Destructor. More...
 
virtual void Generate (Mesh &p_mesh, UIntArray const &p_faces, RealArray const &p_dimensions)
 Generates the mesh. More...
 
virtual void ComputeNormals (Mesh &p_mesh, bool p_reverted=false)
 Generates normals and tangents. More...
 
eMESH_TYPE GetMeshType () const
 Retrieves the mesh type. More...
 

Static Public Member Functions

static C3D_API MeshGeneratorSPtr Create ()
 Creation function, used by Factory. More...
 
- Static Public Member Functions inherited from Castor3D::MeshGenerator
static MeshGeneratorSPtr Create ()
 Creation function, used by Factory. More...
 

Friends

std::ostream & operator<< (std::ostream &o, Torus const &c)
 Stream operator. More...
 

Detailed Description

The torus representation.

Author
Sylvain DOREMUS
Date
14/02/2010
Remarks
A torus is an ellipse performing an horizontal ellipse.
The original ellipse will be called internal and has its own radius and number of subsections

Constructor & Destructor Documentation

◆ Torus()

C3D_API Castor3D::Torus::Torus ( )

Constructor.

◆ ~Torus()

C3D_API Castor3D::Torus::~Torus ( )

Destructor.

Member Function Documentation

◆ Create()

static C3D_API MeshGeneratorSPtr Castor3D::Torus::Create ( )
static

Creation function, used by Factory.

Returns
Cylinder

◆ GetExternalNbFaces()

uint32_t Castor3D::Torus::GetExternalNbFaces ( ) const
inline

Retrieves the external ellipse faces number.

◆ GetExternalRadius()

real Castor3D::Torus::GetExternalRadius ( ) const
inline

Retrieves the external ellipse radius.

◆ GetInternalNbFaces()

uint32_t Castor3D::Torus::GetInternalNbFaces ( ) const
inline

Retrieves the internal ellipse faces number.

◆ GetInternalRadius()

real Castor3D::Torus::GetInternalRadius ( ) const
inline

Retrieves the internal ellipse radius.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
Torus const &  c 
)
friend

Stream operator.


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