We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 014e2cb commit 4ff4171Copy full SHA for 4ff4171
src/type/p5.Font.js
@@ -631,8 +631,8 @@ export class Font {
631
const edgeVector = new Vector(vB.x - vA.x, vB.y - vA.y, vB.z - vA.z);
632
const extrudeVector = new Vector(0, 0, extrude);
633
const crossProduct = Vector.cross(edgeVector, extrudeVector);
634
- if (crossProduct.mag() < 0.0001) continue;
635
- if (dist < 0.0001) continue;
+ const dist = edgeVector.mag();
+ if (crossProduct.mag() < 0.0001 || dist < 0.0001) continue;
636
// Front face vertices
637
const frontA = extruded.vertices.length;
638
extruded.vertices.push(new Vector(vA.x, vA.y, vA.z + half));
0 commit comments