Unravel Engine C++ Reference
Loading...
Searching...
No Matches
generator::box_mesh_t Class 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
 

Detailed Description

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

Definition at line 69 of file box_mesh.hpp.

Member Typedef Documentation

◆ triangles_t

using generator::box_mesh_t::triangles_t = typename impl_t::triangles_t

Definition at line 84 of file box_mesh.hpp.

◆ vertices_t

using generator::box_mesh_t::vertices_t = typename impl_t::vertices_t

Definition at line 91 of file box_mesh.hpp.

Constructor & Destructor Documentation

◆ box_mesh_t()

box_mesh_t::box_mesh_t ( const gml::dvec3 & size = {1.0, 1.0, 1.0},
const gml::ivec3 & segments = {8, 8, 8} )
explicitnoexcept
Parameters
sizeHalf of the side length in x (0), y (1) and z (2) direction.
segmentsThe 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.

Member Function Documentation

◆ triangles()

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

Definition at line 86 of file box_mesh.hpp.

◆ vertices()

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

Definition at line 93 of file box_mesh.hpp.


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