Well, maybe you are trying to solve an entirely different problem. And WebGL is just one of several output formats supported by Asymptote, I assume adding (contributing) another backend would be possible. (But I only realised just now that you already contributed to the PRC code, which is probably even more "exotic" than WebGL) If you see the js code from github all in one line that is likely to be a problem with the translation of line ending characters on/to your platform, are you on MSWindows...
Michail, which propietary format do you mean, the quasi-internal .asy one ? I find it very easy to generate from my code, much like the original VRML. In my opinion X3D has been all but killed off by all the xml-ifications when all that is desired is a 3D visualisation. And WebGL has the added advantage of not requiring everyone to install some specialized viewer (that may even be hard to get for some platforms). Source code is on github
Thank you very much for implementing this, it has indeed reduced the size of typical files to the same order of magnitude as their VRML counterparts. (Most of the difference now is from polyhedra, where IndexedFaceSet is a bit more compact than the set of Bezier patches, but at least sizes are small enough now for congested or mobile connections. Suddenly so much more important than anticipated...)
The new WebGL output is very tempting as a modern replacement for the VRML I have been using, however the sheer size of the the generated code is disconcerting. Most of my models contain lots of unitspheres, which Asymptote turns into individual sets of eight Bezier patches each which makes for a rather lengthy output. This is already apparent in the 180kB WebGL resulting from cyclohexane.asy, with three of four times the number of spheres (and similar number of polyhedra and/or cylinders connecting...
Could you recompile with -g to get a more meaningful backtrace ?
Commit 0f9569 broke building OpenBLAS
You want the lowest energy for an equilibrium state, not just the lowest possible...
Can you share your input, or at least some information about the system you are trying...