diff --git a/js/geo-polygon.js b/js/geo-polygon.js index 1bc047f5..1a867590 100644 --- a/js/geo-polygon.js +++ b/js/geo-polygon.js @@ -295,7 +295,7 @@ var gs_base_polygon = exports; }; /** - * add fill angle hinting from longest segment + * hint fill angle hinting from longest segment */ PRO.hintFillAngle = function() { var index = 0, @@ -320,7 +320,6 @@ var gs_base_polygon = exports; if (longest && this.circularity() >= mincir) { this.fillang = longest.p1.slopeTo(longest.p2).normal(); - // console.log([this.fillang,this.getZ(),this.id]); } return this.fillang; diff --git a/js/geo-slope.js b/js/geo-slope.js index 734c8922..46561668 100644 --- a/js/geo-slope.js +++ b/js/geo-slope.js @@ -95,7 +95,7 @@ var gs_base_slope = exports; PRO.invert = function() { this.dx = -this.dx; this.dy = -this.dy; - this.angle = 360 - this.angle;//Math.atan2(this.dy, this.dx) * RAD2DEG; + this.angle = 360 - this.angle; return this; }; diff --git a/js/kiri-slice.js b/js/kiri-slice.js index d4c7a99a..c56c02e5 100644 --- a/js/kiri-slice.js +++ b/js/kiri-slice.js @@ -478,7 +478,7 @@ var gs_kiri_slice = exports; this.tops.forEach(function(top) { if (top.inner && top.inner.length > 0) { - top.fill_lines = fillArea(top.inner, angle, spacing); + top.fill_lines = fillArea(top.inner, angle, spacing, null, 0.00001); } else { top.fill_lines = null; } @@ -751,8 +751,8 @@ var gs_kiri_slice = exports; if (angfill.length > 0) { top.fill_lines_ang = {spacing:spacing,list:[],poly:[]}; angfill.forEach(function(af) { - fillArea([af], af.fillang.angle+90, spacing, top.fill_lines); - top.fill_lines_ang.list.push(af.fillang.angle+90); + fillArea([af], af.fillang.angle + 45, spacing, top.fill_lines); + top.fill_lines_ang.list.push(af.fillang.angle + 45); top.fill_lines_ang.poly.push(af.clone()); }); }