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

◆ add_tangent()

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

Append tangent segments derived from a vertex path.

Delegates to Kinesis::compute_path_tangents. Each tangent is emitted as one LINE_LIST segment centred on the source vertex. Appends to existing segments; does not clear first.

Parameters
path_verticesSource vertices defining the path.
lengthVisual length of each tangent segment.
strideSample every stride-th vertex (default: 1).

Definition at line 60 of file LineSegmentsNode.cpp.

64{
65 append_pairs(Kinesis::compute_path_tangents(path_vertices, length, stride));
66}
void append_pairs(const std::vector< LineVertex > &pairs)
std::vector< Kakshya::LineVertex > compute_path_tangents(const std::vector< Kakshya::LineVertex > &path_vertices, float tangent_length, size_t stride)
Compute tangent vectors along a piecewise-linear path.

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

+ Here is the call graph for this function: