Castor3D 0.12.0
Multiplatform 3D engine
Public Member Functions | Static Public Member Functions | List of all members
castor3d::MeshGenerator Class Reference

#include <MeshGenerator.hpp>

Inheritance diagram for castor3d::MeshGenerator:
Inheritance graph
[legend]

Public Member Functions

C3D_API MeshGenerator (castor::String const &meshType)
 Constructor. More...
 
virtual C3D_API ~MeshGenerator ()
 Destructor. More...
 
virtual C3D_API void generate (Mesh &mesh, Parameters const &parameters)
 Generates the mesh. More...
 
virtual C3D_API void computeNormals (Mesh &mesh, bool reverted=false)
 Generates normals and tangents. More...
 

Static Public Member Functions

static MeshGeneratorSPtr create ()
 Creation function, used by Factory. More...
 

Constructor & Destructor Documentation

◆ MeshGenerator()

C3D_API castor3d::MeshGenerator::MeshGenerator ( castor::String const &  meshType)
explicit

Constructor.

Parameters
[in]meshTypeThe mesh type

◆ ~MeshGenerator()

virtual C3D_API castor3d::MeshGenerator::~MeshGenerator ( )
virtual

Destructor.

Member Function Documentation

◆ computeNormals()

virtual C3D_API void castor3d::MeshGenerator::computeNormals ( Mesh mesh,
bool  reverted = false 
)
virtual

Generates normals and tangents.

Parameters
[in]meshThe mesh.
[in]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 C3D_API void castor3d::MeshGenerator::generate ( Mesh mesh,
Parameters const &  parameters 
)
virtual

Generates the mesh.

Parameters
[in]meshThe mesh.
[in]parametersThe generator parameters.

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