As a very first starting point I've implemented a new function "text" in package @jscad/modeling.text which directly creates Path2 arrays.
It is currently part of my own fork of OpenJSCAD only, as I expect multiple changes before it might get accepted and become ready for an official PR. Additionally, my tests are still almost empty (as I have to learn AVA first) and only test for an execution w/o throwing any exceptions...
I have just made another step forward: mesh support (but with some quirks ATM)
I have some lighting to fix, and also babylonjs for some weird rason uses left handed system (this adds a bit of complexity to the worker to support it properly)
Also when switching viewers, if they are different orioentation currently I need to run the script again manually to get properly oriented triangles
I changed my obj importer code to make it work with obj without groups. Now I can start to colorize my models by code. And there's one nice thing about that : I can use that faces coloring to store a volume's unfold pattern.
Capture d’écran de 2022-03-26 21-48-08.png