|
CeresEngine 0.2.0
A game development framework
|
Tube (thick cylinder) centered at origin aligned along the z-axis. More...
#include <CeresEngine/Mesh/Generator/TubeMesh.hpp>
Public Types | |
| using | Triangles = typename Impl::Triangles |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| TubeMesh (double radius=1.0, double innerRadius=0.75, double size=1.0, int slices=32, int segments=8, double start=0.0, double sweep=radians(360.0)) | |
| Triangles | triangles () const noexcept |
| Vertices | vertices () const noexcept |
Private Types | |
| using | Impl = MergeMesh< CylinderMesh, FlipMesh< UvFlipMesh< CylinderMesh > > > |
Private Attributes | |
| Impl | mMergeMesh |
Tube (thick cylinder) centered at origin aligned along the z-axis.
|
private |
| using CeresEngine::MeshGenerator::TubeMesh::Triangles = typename Impl::Triangles |
| using CeresEngine::MeshGenerator::TubeMesh::Vertices = typename Impl::Vertices |
| CeresEngine::MeshGenerator::TubeMesh::TubeMesh | ( | double | radius = 1.0, |
| double | innerRadius = 0.75, |
||
| double | size = 1.0, |
||
| int | slices = 32, |
||
| int | segments = 8, |
||
| double | start = 0.0, |
||
| double | sweep = radians(360.0) |
||
| ) |
| radius | The outer radius of the cylinder on the xy-plane. |
| innerRadius | The inner radius of the cylinder on the xy-plane. |
| size | Half of the length of the cylinder along the z-axis. |
| slices | Subdivisions around the z-axis. |
| segments | Subdivisions along the z-axis. |
| start | Counterclockwise angle around the z-axis relative to the x-axis. |
| sweep | Counterclockwise angle around the z-axis. |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |