|
MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
|
| std::vector< Nodes::LineVertex > MayaFlux::Kinesis::compute_path_normals | ( | const std::vector< Nodes::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 235 of file GeometryPrimitives.cpp.