|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::vector< Kakshya::LineVertex > MayaFlux::Kinesis::polyline | ( | std::span< const glm::vec2 > | pts, |
| glm::vec3 | color = glm::vec3(1.F), |
||
| float | thickness = 1.F |
||
| ) |
Polyline as a LINE_LIST (open path, 2 * (pts.size() - 1) vertices).
Converts a span of NDC vec2 positions into adjacent LineVertex pairs. Suitable for waveform traces, cable routes, and arbitrary open curves.
| pts | Ordered path vertices in NDC. |
| color | Uniform line color. |
| thickness | Line thickness. |
Definition at line 286 of file Geometry2D.cpp.
Referenced by MayaFlux::Portal::Forma::Geometry::stroke_slider().
Here is the caller graph for this function: