Code

b515ebf8bea141cbc4128a1e6950ee2e621cac0c
[inkscape.git] / src / 2geom / sbasis-to-bezier.h
1 #ifndef _SBASIS_TO_BEZIER
2 #define _SBASIS_TO_BEZIER
4 #include "d2.h"
5 #include "path.h"
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);
12 // inverse
13 SBasis bezier_to_sbasis(Bezier const &B);
16 std::vector<Geom::Point>
17 sbasis_to_bezier(D2<SBasis> const &B, unsigned q = 0);
19 std::vector<Path> path_from_piecewise(Piecewise<D2<SBasis> > const &B, double tol);
21 Path path_from_sbasis(D2<SBasis> const &B, double tol);
23 };
24 #endif
26 /*
27   Local Variables:
28   mode:c++
29   c-file-style:"stroustrup"
30   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
31   indent-tabs-mode:nil
32   fill-column:99
33   End:
34 */
35 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :