fix unmarked fill point bug
This commit is contained in:
parent
1e8bd12afd
commit
975fe5cacc
4 changed files with 9 additions and 8 deletions
|
|
@ -661,6 +661,7 @@ var gs_base_polygons = exports;
|
||||||
rayint.push(line[0]);
|
rayint.push(line[0]);
|
||||||
rayint.push(line[1]);
|
rayint.push(line[1]);
|
||||||
})
|
})
|
||||||
|
|
||||||
return rayint;
|
return rayint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -624,6 +624,12 @@ var gs_kiri_print = exports;
|
||||||
}
|
}
|
||||||
skip = false;
|
skip = false;
|
||||||
|
|
||||||
|
// mark as used (temporarily)
|
||||||
|
p1.del = true;
|
||||||
|
p2.del = true;
|
||||||
|
marked += 2;
|
||||||
|
lastIndex = p1.index;
|
||||||
|
|
||||||
// if dist to new segment is less than thinWall
|
// if dist to new segment is less than thinWall
|
||||||
// and segment length is less than thinWall then
|
// and segment length is less than thinWall then
|
||||||
// just extrude to midpoint of next segment. this is
|
// just extrude to midpoint of next segment. this is
|
||||||
|
|
@ -652,13 +658,7 @@ var gs_kiri_print = exports;
|
||||||
addOutput(preout, p2, fillMult, fillSpeed);
|
addOutput(preout, p2, fillMult, fillSpeed);
|
||||||
}
|
}
|
||||||
|
|
||||||
// mark as used (temporarily)
|
|
||||||
p1.del = true;
|
|
||||||
p2.del = true;
|
|
||||||
|
|
||||||
lastIndex = p1.index;
|
|
||||||
startPoint = p2;
|
startPoint = p2;
|
||||||
marked += 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear delete marks so we can re-print later
|
// clear delete marks so we can re-print later
|
||||||
|
|
|
||||||
|
|
@ -837,8 +837,8 @@ var gs_kiri_slice = exports;
|
||||||
top.fill_lines_ang.poly.push(af.clone());
|
top.fill_lines_ang.poly.push(af.clone());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
|
});
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
var exports = {
|
var exports = {
|
||||||
COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen <stewart@neuron.com> - All Rights Reserved",
|
COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen <stewart@neuron.com> - All Rights Reserved",
|
||||||
LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.",
|
LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.",
|
||||||
VERSION:"1.0.96"
|
VERSION:"1.0.97"
|
||||||
};
|
};
|
||||||
if (!module) var module = {};
|
if (!module) var module = {};
|
||||||
module.exports = exports;
|
module.exports = exports;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue