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

◆ add_normal()

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

Append normal segments derived from a vertex path.

Delegates to Kinesis::compute_path_normals. Each normal is emitted as one LINE_LIST segment centred on the midpoint between consecutive vertices. Appends to existing segments; does not clear first.

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

Definition at line 52 of file LineSegmentsNode.cpp.

56{
57 append_pairs(Kinesis::compute_path_normals(path_vertices, length, stride));
58}
void append_pairs(const std::vector< LineVertex > &pairs)
std::vector< Kakshya::LineVertex > compute_path_normals(const std::vector< Kakshya::LineVertex > &path_vertices, float normal_length, size_t stride)
Compute normal vectors along a piecewise-linear path.

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

+ Here is the call graph for this function: