A shape with values evaluated using a callback function.
More...
#include <parametric_shape.hpp>
A shape with values evaluated using a callback function.
Definition at line 13 of file parametric_shape.hpp.
◆ parametric_shape_t()
parametric_shape_t::parametric_shape_t |
( |
const std::function< shape_vertex_t(double)> & | eval, |
|
|
int | segments = 16 ) |
|
explicitnoexcept |
- Parameters
-
eval | A callback that returns a ShapeVertex for a given value. |
segments | The number of segments along the shape. Should be >= 1. Zero yields an empty shape. |
Definition at line 55 of file parametric_shape.cpp.
◆ edges()
◆ vertices()
The documentation for this class was generated from the following files:
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/rendering/generator/parametric_shape.hpp
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/rendering/generator/parametric_shape.cpp