default to better connected hex infill
This commit is contained in:
parent
dc008fb28f
commit
fb9746175c
2 changed files with 5 additions and 4 deletions
|
|
@ -545,7 +545,7 @@ var gs_kiri_slice = exports;
|
|||
|
||||
scope.isSparseFill = true;
|
||||
// this is pluggable
|
||||
sparseFillHex(target);
|
||||
sparseFillHex(target, true);
|
||||
// force emit of last line
|
||||
target.newline();
|
||||
|
||||
|
|
@ -1115,8 +1115,9 @@ var gs_kiri_slice = exports;
|
|||
* emitter creates a hex infill pattern and sends to target
|
||||
*
|
||||
* @param {Object} target
|
||||
* @param {boolean} full continuous walls
|
||||
*/
|
||||
function sparseFillHex(target) {
|
||||
function sparseFillHex(target, full) {
|
||||
// compute segment lengths (vert/horiz and 45)
|
||||
var spacing = target.offset() / 2,
|
||||
vhlen = (1 - target.density()) * 4 + spacing,
|
||||
|
|
@ -1127,7 +1128,7 @@ var gs_kiri_slice = exports;
|
|||
evenZ = target.zIndex() % 2 === 0,
|
||||
x, y;
|
||||
|
||||
if (evenZ) {
|
||||
if (full || evenZ) {
|
||||
x = bounds.min.x;
|
||||
for (;;) {
|
||||
if (even && x > bounds.max.x) break;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
var exports = {
|
||||
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.",
|
||||
VERSION:"1.0.67"
|
||||
VERSION:"1.0.68"
|
||||
};
|
||||
if (!module) var module = {};
|
||||
module.exports = exports;
|
||||
|
|
|
|||
Loading…
Reference in a new issue