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

#include <dodecahedron_mesh.hpp>

Classes

class  triangles_t
 
class  vertices_t
 

Public Member Functions

 dodecahedron_mesh_t (double radius=1.0, int segments=1, int rings=1) noexcept
 
triangles_t triangles () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

A regular dodecahedron centered at origin with given radius. Each face optionally subdivided along edges and/or radius.

Definition at line 18 of file dodecahedron_mesh.hpp.

Constructor & Destructor Documentation

◆ dodecahedron_mesh_t()

dodecahedron_mesh_t::dodecahedron_mesh_t ( double radius = 1.0,
int segments = 1,
int rings = 1 )
explicitnoexcept
Parameters
radiusThe radius of the enclosing sphere.
segmentsThe number segments along each edge. Should be >= 1. If <1 empty mesh is generated.
ringsThe number of radial segments on each face. Should be >= 1. If <1 an empty mesh is generated.

Definition at line 145 of file dodecahedron_mesh.cpp.

Member Function Documentation

◆ triangles()

dodecahedron_mesh_t::triangles_t dodecahedron_mesh_t::triangles ( ) const
noexcept

Definition at line 153 of file dodecahedron_mesh.cpp.

◆ vertices()

dodecahedron_mesh_t::vertices_t dodecahedron_mesh_t::vertices ( ) const
noexcept

Definition at line 158 of file dodecahedron_mesh.cpp.


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