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

◆ add_curvature()

void MayaFlux::Nodes::GpuSync::LineSegmentsNode::add_curvature ( const std::vector< LineVertex > &  path_vertices,
float  scale,
size_t  stride = 1 
)

Append curvature segments derived from a vertex path.

Delegates to Kinesis::compute_path_curvature. Each curvature vector is emitted as one LINE_LIST segment originating at the source vertex. Appends to existing segments; does not clear first.

Parameters
path_verticesSource vertices defining the path.
scaleMagnitude scaling factor applied to the curvature vector.
strideSample every stride-th vertex (default: 1).

Definition at line 68 of file LineSegmentsNode.cpp.

72{
73 append_pairs(Kinesis::compute_path_curvature(path_vertices, scale, stride));
74}
void append_pairs(const std::vector< LineVertex > &pairs)
std::vector< Kakshya::LineVertex > compute_path_curvature(const std::vector< Kakshya::LineVertex > &path_vertices, float curvature_scale, size_t stride)
Compute curvature vectors along a path (2nd derivative approximation)

References append_pairs(), and MayaFlux::Kinesis::compute_path_curvature().

+ Here is the call graph for this function: