mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 19:43:48 +01:00
added map to lower argument
This commit is contained in:
parent
91fc46621f
commit
bf2a9c512c
@ -11,7 +11,7 @@ export default function optimizePaths(slices, settings) {
|
|||||||
|
|
||||||
if (slice.brim !== undefined && slice.brim.paths.length > 0) {
|
if (slice.brim !== undefined && slice.brim.paths.length > 0) {
|
||||||
slice.brim = optimizeShape(slice.brim, start);
|
slice.brim = optimizeShape(slice.brim, start);
|
||||||
start.copy(slice.brim.lastPoint());
|
start.copy(slice.brim.lastPoint(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
const parts = [];
|
const parts = [];
|
||||||
@ -49,7 +49,7 @@ export default function optimizePaths(slices, settings) {
|
|||||||
if (part.shape.closed) {
|
if (part.shape.closed) {
|
||||||
if (part.outerLine.paths.length > 0) {
|
if (part.outerLine.paths.length > 0) {
|
||||||
part.outerLine = optimizeShape(part.outerLine, start);
|
part.outerLine = optimizeShape(part.outerLine, start);
|
||||||
start.copy(part.outerLine.lastPoint());
|
start.copy(part.outerLine.lastPoint(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let i = 0; i < part.innerLines.length; i ++) {
|
for (let i = 0; i < part.innerLines.length; i ++) {
|
||||||
@ -57,17 +57,17 @@ export default function optimizePaths(slices, settings) {
|
|||||||
|
|
||||||
if (innerLine.paths.length > 0) {
|
if (innerLine.paths.length > 0) {
|
||||||
part.innerLines[i] = optimizeShape(innerLine, start);
|
part.innerLines[i] = optimizeShape(innerLine, start);
|
||||||
start.copy(part.innerLines[i].lastPoint());
|
start.copy(part.innerLines[i].lastPoint(true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (part.fill.paths.length > 0) {
|
if (part.fill.paths.length > 0) {
|
||||||
part.fill = optimizeShape(part.fill, start);
|
part.fill = optimizeShape(part.fill, start);
|
||||||
start.copy(part.fill.lastPoint());
|
start.copy(part.fill.lastPoint(true));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
part.shape = optimizeShape(part.shape, start);
|
part.shape = optimizeShape(part.shape, start);
|
||||||
start.copy(part.shape.lastPoint());
|
start.copy(part.shape.lastPoint(true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ export default function optimizePaths(slices, settings) {
|
|||||||
|
|
||||||
if (slice.support !== undefined && slice.support.length > 0) {
|
if (slice.support !== undefined && slice.support.length > 0) {
|
||||||
slice.support = optimizeShape(slice.support, start);
|
slice.support = optimizeShape(slice.support, start);
|
||||||
start.copy(slice.support.lastPoint());
|
start.copy(slice.support.lastPoint(true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user