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

#include <rounded_box_mesh.hpp>

Public Types

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

Public Member Functions

 rounded_box_mesh_t (double radius=0.25, const gml::dvec3 &size={0.75, 0.75, 0.75}, int slices=4, const gml::ivec3 &segments={8, 8, 8})
 
triangles_t triangles () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

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

Definition at line 120 of file rounded_box_mesh.hpp.

Member Typedef Documentation

◆ triangles_t

using generator::rounded_box_mesh_t::triangles_t = typename impl_t::triangles_t

Definition at line 143 of file rounded_box_mesh.hpp.

◆ vertices_t

using generator::rounded_box_mesh_t::vertices_t = typename impl_t::vertices_t

Definition at line 150 of file rounded_box_mesh.hpp.

Constructor & Destructor Documentation

◆ rounded_box_mesh_t()

rounded_box_mesh_t::rounded_box_mesh_t ( double radius = 0.25,
const gml::dvec3 & size = {0.75, 0.75, 0.75},
int slices = 4,
const gml::ivec3 & 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.

Definition at line 28 of file rounded_box_mesh.cpp.

Member Function Documentation

◆ triangles()

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

Definition at line 145 of file rounded_box_mesh.hpp.

◆ vertices()

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

Definition at line 152 of file rounded_box_mesh.hpp.


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