Castor3D 0.16.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.
 
virtual C3D_API ~MeshGenerator () noexcept=default
 Destructor.
 
virtual C3D_API void generate (Mesh &mesh, Parameters const &parameters)
 Generates the mesh.
 
virtual C3D_API void computeNormals (Mesh &mesh, bool reverted=false)
 Generates normals and tangents.
 

Static Public Member Functions

static MeshGeneratorUPtr create ()
 Creation function, used by Factory.
 

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 ( )
virtualdefaultnoexcept

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 MeshGeneratorUPtr 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: