summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5636d85)
raw | patch | inline | side by side (parent: 5636d85)
author | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Thu, 30 Apr 2009 20:08:46 +0000 (20:08 +0000) | ||
committer | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Thu, 30 Apr 2009 20:08:46 +0000 (20:08 +0000) |
src/livarot/PathConversion.cpp | patch | blob | history |
index 16717e5bdcfd1382a6fb6815b01edaffec15f1f3..bf1e9c5c972d50c8eb25a2282299b92689b36592 100644 (file)
curP = 0;
curX[0] = curX[1] = 0;
}
-
+
last_point_relation = POINT_RELATION_TO_AREA(curX, area);
lastMoveTo = AddPoint(curX, true);
}
nextX = nData->p;
lastMoveTo = AddPoint(nextX, true);
descr_cmd[curP]->associated = lastMoveTo;
-
+
last_point_relation = POINT_RELATION_TO_AREA(nextX, area);
start_elimination = false;
} else {
start_elimination = false;
}
-
+
if (!replace) {
RecCubicTo(curX, nData->start, nextX, nData->end, treshhold, 8);
descr_cmd[curP]->associated = AddPoint(nextX,false);
Geom::Point nexcur;
nexcur = nextX - curX;
const double segL = Geom::L2(nexcur);
- if ( segL > treshhold ) {
+ if ( (segL > treshhold) && (treshhold > 0) ) {
for (double i = treshhold; i < segL; i += treshhold) {
Geom::Point nX;
nX = (segL - i) * curX + i * nextX;
nextX = nData->p;
Geom::Point nexcur = nextX - curX;
const double segL = L2(nexcur);
- if ( segL > treshhold ) {
+ if ( (segL > treshhold) && (treshhold > 0)) {
for (double i = treshhold; i < segL; i += treshhold) {
Geom::Point nX = ((segL - i) * curX + i * nextX) / segL;
AddPoint(nX);