Unravel Engine C++ Reference
Loading...
Searching...
No Matches
plane_mesh.hpp
Go to the documentation of this file.
1#ifndef GENERATOR_PLANE_HPP
2#define GENERATOR_PLANE_HPP
3
4#include "parametric_mesh.hpp"
5
6namespace generator
7{
8
12{
13private:
15 impl_t parametric_mesh_;
16
17public:
20 plane_mesh_t(const gml::dvec2& size = {1.0, 1.0}, const gml::ivec2& segments = {8, 8});
21
23
24 triangles_t triangles() const noexcept
25 {
26 return parametric_mesh_.triangles();
27 }
28
30
31 vertices_t vertices() const noexcept
32 {
33 return parametric_mesh_.vertices();
34 }
35};
36} // namespace generator
37
38#endif
A mesh with values evaluated using a callback function.
vertices_t vertices() const noexcept
triangles_t triangles() const noexcept
triangles_t triangles() const noexcept
typename impl_t::vertices_t vertices_t
plane_mesh_t(const gml::dvec2 &size={1.0, 1.0}, const gml::ivec2 &segments={8, 8})
Definition plane_mesh.cpp:5
vertices_t vertices() const noexcept
typename impl_t::triangles_t triangles_t
const segment_list * segments