at the cost of a litle extra compute time, remove more erroneous burs
This commit is contained in:
parent
49a839bc8b
commit
c537216b54
1 changed files with 2 additions and 0 deletions
|
|
@ -200,6 +200,8 @@
|
|||
const contour = [];
|
||||
poly = poly.debur(0.05);
|
||||
if (!poly) return;
|
||||
poly = poly.clean();
|
||||
if (!poly) return;
|
||||
poly = poly.miter();
|
||||
poly.points.forEach(p => {
|
||||
contour.push(new THREE.Vector2(p.x, p.y));
|
||||
|
|
|
|||
Loading…
Reference in a new issue