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

#include <disk_mesh.hpp>

Public Types

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

Public Member Functions

 disk_mesh_t (double radius=1.0, double innerRadius=0.0, int slices=32, int rings=4, double start=0.0, double sweep=gml::radians(360.0))
 
triangles_t triangles () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

A circular disk centered at origin on the xy-plane.

Definition at line 13 of file disk_mesh.hpp.

Member Typedef Documentation

◆ triangles_t

using generator::disk_mesh_t::triangles_t = typename impl_t::triangles_t

Definition at line 33 of file disk_mesh.hpp.

◆ vertices_t

Definition at line 40 of file disk_mesh.hpp.

Constructor & Destructor Documentation

◆ disk_mesh_t()

disk_mesh_t::disk_mesh_t ( double radius = 1.0,
double innerRadius = 0.0,
int slices = 32,
int rings = 4,
double start = 0.0,
double sweep = gml::radians(360.0) )
Parameters
radiusOuter radius of the disk on the xy-plane.
innerRadiusradius of the inner circle on the xy-plane.
slicesNumber of subdivisions around the z-axis.
ringsNumber of subdivisions along the radius.
startCounterclockwise angle relative to the x-axis
sweepCounterclockwise angle.

Definition at line 5 of file disk_mesh.cpp.

Member Function Documentation

◆ triangles()

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

Definition at line 35 of file disk_mesh.hpp.

◆ vertices()

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

Definition at line 42 of file disk_mesh.hpp.


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