Post

hi! it produces mesh (three.buffergeometry) only; it uses its own shape representation during tessellation rather than three.shape, I hope this works for you

Thanks, I need both: - as meshes to display flat glyphs - as shapes when extruding letters (see image) because threejs ExtrudeGeometry can only be applied on shapes. The issue I'm having with my own implementation is that some glyphs are badly triangulated, so alternatives are welcomed.

extrusion (depth parameter) is possible; is there something about it that is undesirable for your use case compared to the native three.js extrusion?

0 reposts0 likes

the native extrusion effect would be best, but your could work as well. Do you take care of fixing bad glyphs paths? I struggle with some letters that get badly triangulated, see picture

yes, triangulation and glyph paths should be better, but I’d be happy to improve it if you find an edge case. the entire pipeline is optimized for text; triangulation is handled by libtess2, based on the GLU tessellator, which can handle very difficult paths. IIRC three.js uses earcut