MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ generate_interpolated_path()

void MayaFlux::Nodes::GpuSync::PathGeneratorNode::generate_interpolated_path ( )
private

Definition at line 476 of file PathGeneratorNode.cpp.

477{
478 if (m_control_points.size() < 4) {
479 return;
480 }
481
482 const size_t windows = m_control_points.size() - 3;
483 const size_t per_window = vertices_per_window();
484 const size_t base = m_vertices.size();
485
486 m_vertices.resize(base + windows * per_window);
487
488 for (size_t w = 0; w < windows; ++w) {
489 write_curve_segment(m_control_points, w, m_vertices.data() + base + w * per_window);
490 }
491}
size_t vertices_per_window() const
Vertices emitted per four-point window.
void write_curve_segment(const std::vector< LineVertex > &curve_verts, size_t start_idx, LineVertex *dst)
Evaluate one window and write its vertices.
std::vector< LineVertex > m_control_points
Control points, newest first: index 0 is the most recently added.

References m_control_points, m_vertices, vertices_per_window(), and write_curve_segment().

Referenced by generate_path_vertices().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: