CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::MeshGenerator::ExtrudeMesh< Shape, Path > Class Template Reference

Extrude a shape along a path. More...

#include <CeresEngine/Mesh/Generator/ExtrudeMesh.hpp>

Classes

class  Triangles
 
class  Vertices
 

Public Member Functions

Triangles triangles () const noexcept
 
Vertices vertices () const noexcept
 
 ExtrudeMesh (Shape shape, Path path)
 

Private Attributes

Shape mShape
 
Path mPath
 
int mShapeVertexCount
 

Detailed Description

template<typename Shape, typename Path>
class CeresEngine::MeshGenerator::ExtrudeMesh< Shape, Path >

Extrude a shape along a path.

The shape normal becomes the mesh normal. u-texture coordinate is taken from the shape and v from the path.

Constructor & Destructor Documentation

◆ ExtrudeMesh()

template<typename Shape , typename Path >
CeresEngine::MeshGenerator::ExtrudeMesh< Shape, Path >::ExtrudeMesh ( Shape  shape,
Path  path 
)
inline
Parameters
shapeShape to be extruded.
pathPath to extrude along.

Member Function Documentation

◆ triangles()

template<typename Shape , typename Path >
Triangles CeresEngine::MeshGenerator::ExtrudeMesh< Shape, Path >::triangles ( ) const
inlinenoexcept

◆ vertices()

template<typename Shape , typename Path >
Vertices CeresEngine::MeshGenerator::ExtrudeMesh< Shape, Path >::vertices ( ) const
inlinenoexcept

Member Data Documentation

◆ mPath

◆ mShape

◆ mShapeVertexCount

template<typename Shape , typename Path >
int CeresEngine::MeshGenerator::ExtrudeMesh< Shape, Path >::mShapeVertexCount
private

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