cleanup fill/shell extrusion. fix hex spacing

This commit is contained in:
Stewart Allen 2017-10-30 00:35:52 -04:00
commit 6032b8a794
3 changed files with 17 additions and 28 deletions

View file

@ -1126,7 +1126,7 @@ var gs_kiri_slice = exports;
*/
function sparseFillHex(target) {
// compute segment lengths (vert/horiz and 45)
var spacing = target.offset(),
var spacing = target.offset() / 2,
vhlen = (1 - target.density()) * 4 + spacing,
anxlen = ROUND(Math.cos(30 * DEG2RAD) * vhlen, 7),
anylen = ROUND(Math.sin(30 * DEG2RAD) * vhlen, 7),