Horizon
Loading...
Searching...
No Matches
Public Member Functions | List of all members
BEZIER_POLY Class Reference

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)
 

Detailed Description

Bezier curves to polygon converter.

Only quadratic and cubic Bezier curves are handled

Member Function Documentation

◆ GetPoly()

void BEZIER_POLY::GetPoly ( std::vector< wxPoint > &  aOutput,
int  aMinSegLen = 0 
)

Convert a Bezier curve to a polygon.

Parameters
aOutputwill be used as an output vector storing polygon points.
aMinSegLenis the min dist between 2 successive points. It can be used to reduce the number of points. (the last point is always generated)

The documentation for this class was generated from the following files: