Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CLatheMesh Class Reference

Base class for procedurally generating lathe-based meshes (rotational geometry). More...

#include <Primitive/LatheMesh/CLatheMesh.h>

Inheritance diagram for Skylicht::CLatheMesh:
Skylicht::CCapsuleMesh Skylicht::CCylinderMesh

Public Member Functions

CMeshgetMesh ()
 Get the generated mesh.
void drawOutline ()
 Draw the rotational outline using debug lines.

Protected Member Functions

void initLatheMesh (CMaterial *material, bool tangent)
 Initialize the lathe mesh by rotating the outline around the Y-axis.

Protected Attributes

CLine3D m_outline
CMeshm_mesh

Detailed Description

Base class for procedurally generating lathe-based meshes (rotational geometry).

Member Function Documentation

◆ getMesh()

CMesh * Skylicht::CLatheMesh::getMesh ( )
inline

Get the generated mesh.

Returns
Pointer to CMesh.

◆ initLatheMesh()

void Skylicht::CLatheMesh::initLatheMesh ( CMaterial * material,
bool tangent )
protected

Initialize the lathe mesh by rotating the outline around the Y-axis.

Parameters
materialPointer to the material to apply.
tangentTrue to generate tangent vertices for normal mapping.

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