Scribus
Open source desktop publishing at your fingertips
sbasis-to-bezier.h
1 #ifndef _SBASIS_TO_BEZIER
2 #define _SBASIS_TO_BEZIER
3 
4 #include "d2.h"
5 #include "path.h"
6 
7 namespace Geom{
8 // this produces a degree k bezier from a degree k sbasis
9 Bezier
10 sbasis_to_bezier(SBasis const &B, unsigned q = 0);
11 
12 // inverse
13 SBasis bezier_to_sbasis(Bezier const &B);
14 
15 
16 std::vector<Geom::Point>
17 sbasis_to_bezier(D2<SBasis> const &B, unsigned q = 0);
18 
19 std::vector<Path> path_from_piecewise(Piecewise<D2<SBasis> > const &B, double tol);
20 
21 Path path_from_sbasis(D2<SBasis> const &B, double tol);
22 
23 };
24 #endif
Definition: angle.h:38