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

The Utah Teapot. More...

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

Classes

class  Triangles
 
class  Vertices
 

Public Member Functions

 TeapotMesh (int segments=8) noexcept
 Generates the Utah teapot using the original data.
 
Triangles triangles () const noexcept
 
Vertices vertices () const noexcept
 

Private Attributes

int mSegments
 
int mPatchVertexCount
 

Detailed Description

Constructor & Destructor Documentation

◆ TeapotMesh()

CeresEngine::MeshGenerator::TeapotMesh::TeapotMesh ( int  segments = 8)
explicitnoexcept

Generates the Utah teapot using the original data.

The lid is pointing towards the z axis and the spout towards the x axis.

Parameters
segmentsThe number segments along each patch. Should be >= 1. If zero empty mesh is generated.

Member Function Documentation

◆ triangles()

Triangles CeresEngine::MeshGenerator::TeapotMesh::triangles ( ) const
noexcept

◆ vertices()

Vertices CeresEngine::MeshGenerator::TeapotMesh::vertices ( ) const
noexcept

Member Data Documentation

◆ mPatchVertexCount

int CeresEngine::MeshGenerator::TeapotMesh::mPatchVertexCount
private

◆ mSegments

int CeresEngine::MeshGenerator::TeapotMesh::mSegments
private

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