Unravel Engine C++ Reference
Loading...
Searching...
No Matches
generator::teapot_mesh_t Class Reference

#include <teapot_mesh.hpp>

Classes

class  triangles_t
 
class  vertices_t
 

Public Member Functions

 teapot_mesh_t (int segments=8) noexcept
 
triangles_t triangles () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

The Utah Teapot. https://en.wikipedia.org/wiki/Utah_teapot

Definition at line 18 of file teapot_mesh.hpp.

Constructor & Destructor Documentation

◆ teapot_mesh_t()

teapot_mesh_t::teapot_mesh_t ( 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.

Definition at line 238 of file teapot_mesh.cpp.

Member Function Documentation

◆ triangles()

teapot_mesh_t::triangles_t teapot_mesh_t::triangles ( ) const
noexcept

Definition at line 244 of file teapot_mesh.cpp.

◆ vertices()

teapot_mesh_t::vertices_t teapot_mesh_t::vertices ( ) const
noexcept

Definition at line 249 of file teapot_mesh.cpp.


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