mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 05:37:55 +01:00
fix point sorting
This commit is contained in:
parent
cbc439b4dc
commit
766cadcd44
@ -122,7 +122,7 @@ export default function intersectionsToShapes(layerPoints, layerFaceIndexes, fac
|
||||
}
|
||||
}
|
||||
|
||||
connectPoints.sort(({ previous }) => -previous);
|
||||
connectPoints.sort((a, b) => b.previous - a.previous);
|
||||
|
||||
while (connectPoints.length !== 0) {
|
||||
let { next, previous } = connectPoints.pop();
|
||||
|
Loading…
Reference in New Issue
Block a user