diff --git a/src/geo/polygon.js b/src/geo/polygon.js index d10177cd..8f517734 100644 --- a/src/geo/polygon.js +++ b/src/geo/polygon.js @@ -2050,7 +2050,8 @@ class Polygon { // for turning a poly with an inner offset into a // 3d mesh if and only if the inner has the same - // circularity and <= num points. used to make chamfers + // circularity and <= num points + // primarily used to make chamfers ribbonMesh(swap) { if (!(this.inner && this.inner.length === 1)) { return undefined; @@ -2064,6 +2065,7 @@ class Polygon { let p0 = outer.points.slice(); let p1 = inner.points.slice(); let min = { d: Infinity, i:0, j:0 }; + // find the closests two points inner/outer for (let i=0; i