CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::MeshGenerator::TorusKnotMesh Class Reference

A Circle extruded along a knot path. More...

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

Public Types

using Triangles = typename Impl::Triangles
 
using Vertices = typename Impl::Vertices
 

Public Member Functions

 TorusKnotMesh (int p=2, int q=3, int slices=8, int segments=96)
 
Triangles triangles () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = ExtrudeMesh< CircleShape, KnotPath >
 

Private Attributes

Impl mExtrudeMesh
 

Detailed Description

A Circle extruded along a knot path.

Member Typedef Documentation

◆ Impl

◆ Triangles

◆ Vertices

Constructor & Destructor Documentation

◆ TorusKnotMesh()

CeresEngine::MeshGenerator::TorusKnotMesh::TorusKnotMesh ( int  p = 2,
int  q = 3,
int  slices = 8,
int  segments = 96 
)
Parameters
slicesNumber subdivisions around the circle.
segmentsNumber of subdivisions around the path.

Member Function Documentation

◆ triangles()

Triangles CeresEngine::MeshGenerator::TorusKnotMesh::triangles ( ) const
inlinenoexcept

◆ vertices()

Vertices CeresEngine::MeshGenerator::TorusKnotMesh::vertices ( ) const
inlinenoexcept

Member Data Documentation

◆ mExtrudeMesh

Impl CeresEngine::MeshGenerator::TorusKnotMesh::mExtrudeMesh
private

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