add anti-backlash option for solid fill
This commit is contained in:
parent
06ab7cceb5
commit
7ed281972d
4 changed files with 19 additions and 4 deletions
|
|
@ -619,6 +619,9 @@ var gs_base_polygons = exports;
|
|||
maxlen = BASE.config.clipper * (maxLen || 0),
|
||||
lines = [];
|
||||
|
||||
// store origin as start/affinity point for fill
|
||||
rayint.origin = newPoint(start.x, start.y, start.z);
|
||||
|
||||
for (i = 0; i < steps; i++) {
|
||||
var p1 = newPoint(start.x - raySlope.dx * 1000, start.y - raySlope.dy * 1000, zpos, NOKEY),
|
||||
p2 = newPoint(start.x + raySlope.dx * 1000, start.y + raySlope.dy * 1000, zpos, NOKEY);
|
||||
|
|
|
|||
Loading…
Reference in a new issue