A walkthrough of a pipeline for converting text into 3D meshes using three main components: the JavaScript library svg-text-to-path (with Google Fonts support) to generate SVG paths, the Rust lyon crate to tessellate those paths into 2D triangle meshes, and a custom extrusion step to produce watertight 2-manifold 3D geometry. The backend runs as a minimal Bun HTTP service, while the tessellation and extrusion logic is compiled to WebAssembly. The resulting meshes support arbitrary fonts and scripts, are manifold/watertight, and can be used in CSG and other mesh processing operations.

7m read timeFrom cprimozic.net
Post cover image
Table of contents
svg-text-to-path ⌗lyon ⌗extrusion ⌗conclusion ⌗

Sort: