mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 21:47:59 +01:00
Merge branch 'develop'
This commit is contained in:
commit
7e55b95822
@ -27,7 +27,8 @@
|
|||||||
"url": "git+https://github.com/Doodle3D/Doodle3D-Slicer.git"
|
"url": "git+https://github.com/Doodle3D/Doodle3D-Slicer.git"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "UNLICENSED",
|
||||||
|
"private": true,
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/Doodle3D/Doodle3D-Slicer/issues"
|
"url": "https://github.com/Doodle3D/Doodle3D-Slicer/issues"
|
||||||
},
|
},
|
||||||
|
@ -31,7 +31,8 @@ export default function generateInnerLines(slices, settings) {
|
|||||||
|
|
||||||
const outerLine = part.shape.offset(-nozzleRadius, offsetOptions);
|
const outerLine = part.shape.offset(-nozzleRadius, offsetOptions);
|
||||||
|
|
||||||
if (outerLine.paths.length > 0) {
|
if (outerLine.paths.length === 0) continue;
|
||||||
|
|
||||||
part.shell.push(outerLine);
|
part.shell.push(outerLine);
|
||||||
|
|
||||||
// start with 1 because outerLine is the 1st (0) shell
|
// start with 1 because outerLine is the 1st (0) shell
|
||||||
@ -40,13 +41,14 @@ export default function generateInnerLines(slices, settings) {
|
|||||||
|
|
||||||
const shell = outerLine.offset(-offset, offsetOptions);
|
const shell = outerLine.offset(-offset, offsetOptions);
|
||||||
|
|
||||||
if (shell.paths.length > 0) {
|
if (shell.paths.length === 0) {
|
||||||
part.shell.push(shell);
|
|
||||||
} else {
|
|
||||||
break;
|
break;
|
||||||
|
} else {
|
||||||
|
part.shell.push(shell);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
slice.parts = slice.parts.filter(part => !part.closed || part.shell.length !== 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user