Skip to content

ShapePath: Update toShapes().#33503

Merged
Mugen87 merged 2 commits intomrdoob:devfrom
Mugen87:dev5
Apr 29, 2026
Merged

ShapePath: Update toShapes().#33503
Mugen87 merged 2 commits intomrdoob:devfrom
Mugen87:dev5

Conversation

@Mugen87
Copy link
Copy Markdown
Collaborator

@Mugen87 Mugen87 commented Apr 29, 2026

Fixed #32187.

Description

I've realized the new createShapes() implementation in SVGLoader (see #33415) also fixes triangulation issues with fonts. So the PR moves the implementation to ShapePath.toShapes() so it can now be used by SVGLoader and Font, the main consumers of this method.

Bildschirmfoto 2026-04-29 um 16 29 21

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 29, 2026

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 365.32
86.79
365.32
86.79
+0 B
+0 B
WebGPU 642.62
178.45
642.62
178.45
+0 B
+0 B
WebGPU Nodes 640.73
178.16
640.73
178.16
+0 B
+0 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 497.9
121.48
497.9
121.48
+0 B
+0 B
WebGPU 714.48
193.34
714.48
193.34
+0 B
+0 B
WebGPU Nodes 663.7
180.67
663.7
180.67
+0 B
+0 B

@Mugen87 Mugen87 added this to the r185 milestone Apr 29, 2026
@Mugen87 Mugen87 merged commit 64c8a6b into mrdoob:dev Apr 29, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TextGeometry - Can't genereate correct shape for centain font type

1 participant