Horizon
|
Bezier curves to polygon converter. More...
#include <bezier_curves.h>
Public Member Functions | |
BEZIER_POLY (const std::vector< wxPoint > &aControlPoints) | |
BEZIER_POLY (const std::vector< VECTOR2D > &aControlPoints) | |
void | GetPoly (std::vector< wxPoint > &aOutput, int aMinSegLen=0) |
Convert a Bezier curve to a polygon. | |
void | GetPoly (std::vector< VECTOR2D > &aOutput, double aMinSegLen=0.0) |
Bezier curves to polygon converter.
Only quadratic and cubic Bezier curves are handled
void BEZIER_POLY::GetPoly | ( | std::vector< wxPoint > & | aOutput, |
int | aMinSegLen = 0 |
||
) |
Convert a Bezier curve to a polygon.
aOutput | will be used as an output vector storing polygon points. |
aMinSegLen | is the min dist between 2 successive points. It can be used to reduce the number of points. (the last point is always generated) |