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

#include <torus_mesh.hpp>

Public Types

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

Public Member Functions

 torus_mesh_t (double minor=0.25, double major=1.0, int slices=16, int segments=32, double minorStart=0.0, double minorSweep=gml::radians(360.0), double majorStart=0.0, double majorSweep=gml::radians(360.0))
 
triangles_t triangles () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

Torus centered at origin on the xy-plane.

Definition at line 14 of file torus_mesh.hpp.

Member Typedef Documentation

◆ triangles_t

using generator::torus_mesh_t::triangles_t = typename impl_t::triangles_t

Definition at line 38 of file torus_mesh.hpp.

◆ vertices_t

Definition at line 45 of file torus_mesh.hpp.

Constructor & Destructor Documentation

◆ torus_mesh_t()

torus_mesh_t::torus_mesh_t ( double minor = 0.25,
double major = 1.0,
int slices = 16,
int segments = 32,
double minorStart = 0.0,
double minorSweep = gml::radians(360.0),
double majorStart = 0.0,
double majorSweep = gml::radians(360.0) )
Parameters
minorRadius of the minor (inner) ring
majorRadius of the major (outer) ring
slicesSubdivisions around the minor ring
segmentsSubdivisions around the major ring
minorStartCounterclockwise angle relative to the xy-plane.
minorSweepCounterclockwise angle around the circle.
majorStartCounterclockwise angle around the z-axis relative to the x-axis.
majorSweepCounterclockwise angle around the z-axis.

Definition at line 5 of file torus_mesh.cpp.

Member Function Documentation

◆ triangles()

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

Definition at line 40 of file torus_mesh.hpp.

◆ vertices()

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

Definition at line 47 of file torus_mesh.hpp.


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