summaryrefslogtreecommitdiffstats
path: root/src/live_effects/spiro.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2012-03-23 19:44:33 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2012-03-23 19:44:33 +0000
commitbe2093259f84b6ae9095b99e020c6fc5f2aec45d (patch)
treed295d9cb508bb429a11a3e588cc3648cf9b83d10 /src/live_effects/spiro.cpp
parentclean up spiro code (diff)
downloadinkscape-be2093259f84b6ae9095b99e020c6fc5f2aec45d.tar.gz
inkscape-be2093259f84b6ae9095b99e020c6fc5f2aec45d.zip
more spiro cleanup
(bzr r11122)
Diffstat (limited to 'src/live_effects/spiro.cpp')
-rw-r--r--src/live_effects/spiro.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/live_effects/spiro.cpp b/src/live_effects/spiro.cpp
index b916a2cf7..e7824c297 100644
--- a/src/live_effects/spiro.cpp
+++ b/src/live_effects/spiro.cpp
@@ -28,7 +28,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
#include <stdlib.h>
#include <string.h>
-#include "bezctx_intf.h"
#include "display/curve.h"
#include <2geom/math-utils.h>
@@ -834,7 +833,7 @@ spiro_seg_to_bpath(const double ks[4],
fabs((1./48) * ks[3]);
if (!bend > 1e-8) {
- bezctx_lineto(bc, x1, y1);
+ bc->lineto(bc, x1, y1);
} else {
double seg_ch = hypot(x1 - x0, y1 - y0);
double seg_th = atan2(y1 - y0, x1 - x0);
@@ -857,7 +856,7 @@ spiro_seg_to_bpath(const double ks[4],
vl = (scale * (1./3)) * sin(th_even - th_odd);
ur = (scale * (1./3)) * cos(th_even + th_odd);
vr = (scale * (1./3)) * sin(th_even + th_odd);
- bezctx_curveto(bc, x0 + ul, y0 + vl, x1 - ur, y1 - vr, x1, y1);
+ bc->curveto(bc, x0 + ul, y0 + vl, x1 - ur, y1 - vr, x1, y1);
} else {
/* subdivide */
double ksub[4];
@@ -914,8 +913,7 @@ spiro_to_bpath(const spiro_seg *s, int n, bezctx *bc)
double y1 = s[i + 1].y;
if (i == 0)
- bezctx_moveto(bc, x0, y0, s[0].ty == '{');
- bezctx_mark_knot(bc, i);
+ bc->moveto(bc, x0, y0, s[0].ty == '{');
spiro_seg_to_bpath(s[i].ks, x0, y0, x1, y1, bc, 0);
}
}
@@ -1000,7 +998,6 @@ bezctx * new_bezctx_ink(SPCurve *curve)
result->base.lineto = bezctx_ink_lineto;
result->base.quadto = bezctx_ink_quadto;
result->base.curveto = bezctx_ink_curveto;
- result->base.mark_knot = NULL;
result->curve = curve;
return &result->base;
}