mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 11:33:49 +01:00
cleanup slice
This commit is contained in:
parent
7e9bb39ba9
commit
042db46c04
@ -14,7 +14,6 @@ export default class {
|
||||
var parts = [];
|
||||
|
||||
while (this.parts.length > 0) {
|
||||
|
||||
var closestDistance = Infinity;
|
||||
var closestPart;
|
||||
|
||||
@ -80,10 +79,10 @@ export default class {
|
||||
}
|
||||
|
||||
getOutline () {
|
||||
var outLines = new Shape([], true);
|
||||
const outLines = new Shape([], true);
|
||||
|
||||
for (var i = 0; i < this.parts.length; i ++) {
|
||||
var part = this.parts[i];
|
||||
for (let i = 0; i < this.parts.length; i ++) {
|
||||
const part = this.parts[i];
|
||||
|
||||
if (part.shape.closed) {
|
||||
outLines.join(this.parts[i].outerLine);
|
||||
|
Loading…
Reference in New Issue
Block a user