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

#include <plane_mesh.hpp>

Public Types

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

Public Member Functions

 plane_mesh_t (const gml::dvec2 &size={1.0, 1.0}, const gml::ivec2 &segments={8, 8})
 
triangles_t triangles () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

A plane (rectangular grid) on the xy -plane normal pointing towards z-axis.

Definition at line 11 of file plane_mesh.hpp.

Member Typedef Documentation

◆ triangles_t

Definition at line 22 of file plane_mesh.hpp.

◆ vertices_t

Definition at line 29 of file plane_mesh.hpp.

Constructor & Destructor Documentation

◆ plane_mesh_t()

plane_mesh_t::plane_mesh_t ( const gml::dvec2 & size = {1.0, 1.0},
const gml::ivec2 & segments = {8, 8} )
Parameters
sizeHalf of the side length in x (0) and y (1) direction.
segmentsNumber of subdivisions in the x (0) and y (1) direction.

Definition at line 5 of file plane_mesh.cpp.

Member Function Documentation

◆ triangles()

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

Definition at line 24 of file plane_mesh.hpp.

◆ vertices()

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

Definition at line 31 of file plane_mesh.hpp.


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