A mesh with values evaluated using a callback function.
More...
#include <parametric_mesh.hpp>
A mesh with values evaluated using a callback function.
Definition at line 13 of file parametric_mesh.hpp.
◆ parametric_mesh_t()
parametric_mesh_t::parametric_mesh_t |
( |
const std::function< mesh_vertex_t(const gml::dvec2 &t)> & | eval, |
|
|
const gml::ivec2 & | segments = {16, 16} ) |
|
explicitnoexcept |
- Parameters
-
eval | A callback that returns a MeshVertex for a given value. |
segments | The number of segments along the surface. Both should be >= 1. If either is zero an empty mesh is generated. |
Definition at line 87 of file parametric_mesh.cpp.
◆ triangles()
◆ vertices()
The documentation for this class was generated from the following files:
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/rendering/generator/parametric_mesh.hpp
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/rendering/generator/parametric_mesh.cpp