mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-21 21:27:56 +01:00
change distance check to 3
This commit is contained in:
parent
0f70855989
commit
50ff72a037
@ -4,7 +4,7 @@ import earcut from 'earcut';
|
||||
const TRIANGULATED_OUTLINES = new WeakMap();
|
||||
|
||||
export default function comb(outline, start, end) {
|
||||
if (distanceTo(start, end) < 10) return [start, end];
|
||||
if (distanceTo(start, end) < 3) return [start, end];
|
||||
|
||||
if (!TRIANGULATED_OUTLINES.has(outline)) TRIANGULATED_OUTLINES.set(outline, decompose(outline));
|
||||
const { convexPolygons, vertices } = TRIANGULATED_OUTLINES.get(outline);
|
||||
|
Loading…
Reference in New Issue
Block a user