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

#include <icosphere_mesh.hpp>

Public Types

using triangles_t = typename impl_t::triangles_t
 
using vertices_t = typename impl_t::vertices_t
 

Public Member Functions

 ico_sphere_mesh_t (double radius=1.0, int segments=4)
 
triangles_t triangles () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

Icosphere aka spherical subdivided icosahedron

Definition at line 12 of file icosphere_mesh.hpp.

Member Typedef Documentation

◆ triangles_t

◆ vertices_t

Constructor & Destructor Documentation

◆ ico_sphere_mesh_t()

ico_sphere_mesh_t::ico_sphere_mesh_t ( double radius = 1.0,
int segments = 4 )
Parameters
radiusThe radius of the containing sphere.
segmentsThe number of segments per icosahedron edge. Must be >= 1.

Definition at line 5 of file icosphere_mesh.cpp.

Member Function Documentation

◆ triangles()

triangles_t generator::ico_sphere_mesh_t::triangles ( ) const
inlinenoexcept

Definition at line 25 of file icosphere_mesh.hpp.

◆ vertices()

vertices_t generator::ico_sphere_mesh_t::vertices ( ) const
inlinenoexcept

Definition at line 32 of file icosphere_mesh.hpp.


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