|
CeresEngine 0.2.0
A game development framework
|
A circular disk centered at origin on the xy-plane. More...
#include <CeresEngine/Mesh/Generator/DiskMesh.hpp>
Public Types | |
| using | Triangles = typename Impl::Triangles |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| DiskMesh (double radius=1.0, double innerRadius=0.0, int slices=32, int rings=4, double start=0.0, double sweep=radians(360.0)) | |
| Triangles | triangles () const noexcept |
| Vertices | vertices () const noexcept |
Private Types | |
| using | Impl = AxisSwapMesh< LatheMesh< LineShape > > |
Private Attributes | |
| Impl | mAxisSwapMesh |
A circular disk centered at origin on the xy-plane.
| using CeresEngine::MeshGenerator::DiskMesh::Triangles = typename Impl::Triangles |
| CeresEngine::MeshGenerator::DiskMesh::DiskMesh | ( | double | radius = 1.0, |
| double | innerRadius = 0.0, |
||
| int | slices = 32, |
||
| int | rings = 4, |
||
| double | start = 0.0, |
||
| double | sweep = radians(360.0) |
||
| ) |
| radius | Outer radius of the disk on the xy-plane. |
| innerRadius | radius of the inner circle on the xy-plane. |
| slices | Number of subdivisions around the z-axis. |
| rings | Number of subdivisions along the radius. |
| start | Counterclockwise angle relative to the x-axis |
| sweep | Counterclockwise angle. |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |