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

Mesh category is used to create a mesh's vertices, it is created by MeshFactory. More...

+ Inheritance diagram for Castor3D::MeshGenerator:

Public Member Functions

 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 MeshGeneratorSPtr Create ()
 Creation function, used by Factory. More...
 

Detailed Description

Mesh category is used to create a mesh's vertices, it is created by MeshFactory.

Author
Sylvain DOREMUS
Version
0.7.0
Remarks
Custom mesh category doesn't generate vertices.

Constructor & Destructor Documentation

◆ MeshGenerator()

Castor3D::MeshGenerator::MeshGenerator ( eMESH_TYPE  p_eMeshType = eMESH_TYPE_CUSTOM)

Constructor.

Parameters
[in]p_eMeshTypeThe mesh type

◆ ~MeshGenerator()

virtual Castor3D::MeshGenerator::~MeshGenerator ( )
virtual

Destructor.

Member Function Documentation

◆ ComputeNormals()

virtual void Castor3D::MeshGenerator::ComputeNormals ( Mesh p_mesh,
bool  p_reverted = false 
)
virtual

Generates normals and tangents.

Parameters
[in]p_meshThe mesh.
[in]p_revertedTells if the generated tangent space must be inverted.

◆ Create()

static MeshGeneratorSPtr Castor3D::MeshGenerator::Create ( )
static

Creation function, used by Factory.

Returns
Cylinder

◆ Generate()

virtual void Castor3D::MeshGenerator::Generate ( Mesh p_mesh,
UIntArray const &  p_faces,
RealArray const &  p_dimensions 
)
virtual

Generates the mesh.

Parameters
[in]p_meshThe mesh.
[in]p_facesThe faces counts.
[in]p_dimensionsThe mesh dimensions.

◆ GetMeshType()

eMESH_TYPE Castor3D::MeshGenerator::GetMeshType ( ) const
inline

Retrieves the mesh type.

Returns
The value

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