CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::MeshGenerator::RoundedBoxMesh Class Reference

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
 

Detailed Description

Rectangular box with rounded edges centered at origin aligned along the x, y and z axis.

Member Typedef Documentation

◆ Impl

◆ Triangles

◆ Vertices

Constructor & Destructor Documentation

◆ RoundedBoxMesh()

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} 
)
Parameters
radiusRadius of the rounded edges.
sizeHalf of the side length in x (0), y (1) and z (2) direction.
slicesNumber subdivions around in the rounded edges.
segmentsNumber of subdivisons in x (0), y (1) and z (2) direction for the flat faces.

Member Function Documentation

◆ triangles()

Triangles CeresEngine::MeshGenerator::RoundedBoxMesh::triangles ( ) const
inlinenoexcept

◆ vertices()

Vertices CeresEngine::MeshGenerator::RoundedBoxMesh::vertices ( ) const
inlinenoexcept

Member Data Documentation

◆ mMergeMesh

Impl CeresEngine::MeshGenerator::RoundedBoxMesh::mMergeMesh
private

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