|
CeresEngine 0.2.0
A game development framework
|
Rectangular box with rounded edges centered at origin aligned along the x, y and z axis. More...
#include <CeresEngine/Mesh/Generator/RoundedBoxMesh.hpp>
Public Types | |
| using | Triangles = typename Impl::Triangles |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| RoundedBoxMesh (double radius=0.25, const Vector3 &size={0.75, 0.75, 0.75}, int slices=4, const Vector3i &segments={8, 8, 8}) | |
| Triangles | triangles () const noexcept |
| Vertices | vertices () const noexcept |
Private Types | |
| using | Impl = MergeMesh< AxisSwapMesh< detail::BoxFaces >, UvFlipMesh< AxisSwapMesh< detail::BoxFaces > >, detail::BoxFaces, AxisSwapMesh< detail::BoxEdges >, AxisSwapMesh< detail::BoxEdges >, detail::BoxEdges, detail::BoxCorners > |
Private Attributes | |
| Impl | mMergeMesh |
Rectangular box with rounded edges centered at origin aligned along the x, y and z axis.
| using CeresEngine::MeshGenerator::RoundedBoxMesh::Triangles = typename Impl::Triangles |
| using CeresEngine::MeshGenerator::RoundedBoxMesh::Vertices = typename Impl::Vertices |
| CeresEngine::MeshGenerator::RoundedBoxMesh::RoundedBoxMesh | ( | double | radius = 0.25, |
| const Vector3 & | size = {0.75, 0.75, 0.75}, |
||
| int | slices = 4, |
||
| const Vector3i & | segments = {8, 8, 8} |
||
| ) |
| radius | Radius of the rounded edges. |
| size | Half of the side length in x (0), y (1) and z (2) direction. |
| slices | Number subdivions around in the rounded edges. |
| segments | Number of subdivisons in x (0), y (1) and z (2) direction for the flat faces. |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |