mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2025-06-11 18:03:18 +02:00
update save example
This commit is contained in:
@ -7,12 +7,12 @@ export default function detectOpenClosed(lines) {
|
||||
for (let i = 0; i < pools.length; i ++) {
|
||||
const pool = pools[i];
|
||||
|
||||
const isOpen = pool.some(lineIndex => openLines[lineIndex]);
|
||||
const isOpenGeometry = pool.some(lineIndex => openLines[lineIndex]);
|
||||
|
||||
for (let j = 0; j < pool.length; j ++) {
|
||||
const lineIndex = pool[j];
|
||||
const line = lines[lineIndex];
|
||||
line.open = isOpen;
|
||||
line.openGeometry = isOpenGeometry;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ export default function intersectionsToShapes(layerIntersectionIndexes, layerInt
|
||||
const shape = [];
|
||||
|
||||
const firstPoints = [index];
|
||||
const { open: openGeometry } = lines[index];
|
||||
const { openGeometry } = lines[index];
|
||||
let isFirstPoint = true;
|
||||
let openShape = true;
|
||||
|
||||
|
Reference in New Issue
Block a user