Skip to content

Commit 014e2cb

Browse files
committed
Fix text extrusion with proper vertex deduplication, edge detection, and normal calculation with recomended chnages
1 parent 074248e commit 014e2cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/type/p5.Font.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ export class Font {
630630
// Check if the cross product of edge vectors has sufficient magnitude
631631
const edgeVector = new Vector(vB.x - vA.x, vB.y - vA.y, vB.z - vA.z);
632632
const extrudeVector = new Vector(0, 0, extrude);
633-
const crossProduct = p5.Vector.cross(edgeVector, extrudeVector);
633+
const crossProduct = Vector.cross(edgeVector, extrudeVector);
634634
if (crossProduct.mag() < 0.0001) continue;
635635
if (dist < 0.0001) continue;
636636
// Front face vertices

0 commit comments

Comments
 (0)