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
6
namespace
generator
7
{
8
11
class
plane_mesh_t
12
{
13
private
:
14
using
impl_t
=
parametric_mesh_t
;
15
impl_t
parametric_mesh_;
16
17
public
:
20
plane_mesh_t
(
const
gml::dvec2&
size
= {1.0, 1.0},
const
gml::ivec2&
segments
= {8, 8});
21
22
using
triangles_t
=
typename
impl_t::triangles_t
;
23
24
triangles_t
triangles
() const noexcept
25
{
26
return
parametric_mesh_.
triangles
();
27
}
28
29
using
vertices_t
=
typename
impl_t::vertices_t
;
30
31
vertices_t
vertices
() const noexcept
32
{
33
return
parametric_mesh_.
vertices
();
34
}
35
};
36
}
// namespace generator
37
38
#endif
generator::parametric_mesh_t::triangles_t
Definition
parametric_mesh.hpp:17
generator::parametric_mesh_t::vertices_t
Definition
parametric_mesh.hpp:36
generator::parametric_mesh_t
A mesh with values evaluated using a callback function.
Definition
parametric_mesh.hpp:14
generator::parametric_mesh_t::vertices
vertices_t vertices() const noexcept
Definition
parametric_mesh.cpp:100
generator::parametric_mesh_t::triangles
triangles_t triangles() const noexcept
Definition
parametric_mesh.cpp:95
generator::plane_mesh_t
Definition
plane_mesh.hpp:12
generator::plane_mesh_t::triangles
triangles_t triangles() const noexcept
Definition
plane_mesh.hpp:24
generator::plane_mesh_t::vertices_t
typename impl_t::vertices_t vertices_t
Definition
plane_mesh.hpp:29
generator::plane_mesh_t::plane_mesh_t
plane_mesh_t(const gml::dvec2 &size={1.0, 1.0}, const gml::ivec2 &segments={8, 8})
Definition
plane_mesh.cpp:5
generator::plane_mesh_t::vertices
vertices_t vertices() const noexcept
Definition
plane_mesh.hpp:31
generator::plane_mesh_t::triangles_t
typename impl_t::triangles_t triangles_t
Definition
plane_mesh.hpp:22
generator
Definition
any_generator.hpp:7
parametric_mesh.hpp
segments
const segment_list * segments
Definition
text_component.cpp:442
size
Definition
basetypes.hpp:43
UnravelEngine
UnravelEngine
engine
engine
rendering
generator
plane_mesh.hpp
Generated by
1.12.0