|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::vector< Kakshya::LineVertex > MayaFlux::Kinesis::compute_path_normals | ( | const std::vector< Kakshya::LineVertex > & | path_vertices, |
| float | normal_length, | ||
| size_t | stride = 1 |
||
| ) |
Compute normal vectors along a piecewise-linear path.
| path_vertices | Sequential vertices defining curve |
| normal_length | Magnitude of normal vectors |
| stride | Sample every stride-th vertex (default: 1) |
Normal at vertex i: perpendicular to tangent (v[i+1] - v[i]) Returned as pairs: [midpoint - normal/2, midpoint + normal/2]
Definition at line 246 of file GeometryPrimitives.cpp.
Referenced by MayaFlux::Nodes::GpuSync::LineSegmentsNode::add_normal().
Here is the caller graph for this function: