Unravel Engine C++ Reference
|
#include <box_mesh.hpp>
Public Types | |
using | triangles_t = typename impl_t::triangles_t |
using | vertices_t = typename impl_t::vertices_t |
Public Member Functions | |
box_mesh_t (const gml::dvec3 &size={1.0, 1.0, 1.0}, const gml::ivec3 &segments={8, 8, 8}) noexcept | |
triangles_t | triangles () const noexcept |
vertices_t | vertices () const noexcept |
Rectangular box centered at origin aligned along the x, y and z axis.
Definition at line 69 of file box_mesh.hpp.
using generator::box_mesh_t::triangles_t = typename impl_t::triangles_t |
Definition at line 84 of file box_mesh.hpp.
using generator::box_mesh_t::vertices_t = typename impl_t::vertices_t |
Definition at line 91 of file box_mesh.hpp.
|
explicitnoexcept |
size | Half of the side length in x (0), y (1) and z (2) direction. |
segments | The number of segments in x (0), y (1) and z (2) directions. All should be >= 1. If any one is zero faces in that direction are not genereted. If more than one is zero the mesh is empty. |
Definition at line 17 of file box_mesh.cpp.
|
inlinenoexcept |
Definition at line 86 of file box_mesh.hpp.
|
inlinenoexcept |
Definition at line 93 of file box_mesh.hpp.