Unravel Engine C++ 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 |
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.
using generator::rounded_box_mesh_t::triangles_t = typename impl_t::triangles_t |
Definition at line 143 of file rounded_box_mesh.hpp.
using generator::rounded_box_mesh_t::vertices_t = typename impl_t::vertices_t |
Definition at line 150 of file rounded_box_mesh.hpp.
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} ) |
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. |
Definition at line 28 of file rounded_box_mesh.cpp.
|
inlinenoexcept |
Definition at line 145 of file rounded_box_mesh.hpp.
|
inlinenoexcept |
Definition at line 152 of file rounded_box_mesh.hpp.