For my planar graph playground work I did output OpenSCAD files, as well as later JSCAD files:
viewtopic.php?t=333342&start=75#p2027793
Recently I started new repo for providing 3D output for PARI/GP:
https://github.com/Hermann-SW/GP3D
JSCAD is cool by its own, just open JSCAD menu top left and click on the different examples:
https://jscad.app
The website allowed to pass a model in the URL (https://jscad.app/#http...).
And it did allow to pass base64 data url as well.
I opened a feature request issue on allowing for "...#data,application/gzip;base64,..." as well.
Today the pull request was pushed to server:
https://github.com/hrgdavor/jscadui/pull/80
I updated my tool to make use of new mechanism:
https://github.com/Hermann-SW/GP3D/blob ... view_gzb64
I did run with 27303-bytes model I created with GP3D:The resulting base64(gzip(gp.jscad)) URL is a 6552 bytes data URL, just click and you can see my model in your browser.
If you select the matching options in dialog left bottom, it should look similar to this:
P.S:
I did performance measurements for that model today, on jscad.app and on openjscad.xyz.
It turned out my Pi5 is 50% faster than my Intel Celeron j4125 running Ubunutu.
And jscad.app did render twice as fast as openjscad.xyz:
https://github.com/hrgdavor/jscadui/iss ... 2094591404
viewtopic.php?t=333342&start=75#p2027793
Recently I started new repo for providing 3D output for PARI/GP:
https://github.com/Hermann-SW/GP3D
JSCAD is cool by its own, just open JSCAD menu top left and click on the different examples:
https://jscad.app
The website allowed to pass a model in the URL (https://jscad.app/#http...).
And it did allow to pass base64 data url as well.
I opened a feature request issue on allowing for "...#data,application/gzip;base64,..." as well.
Today the pull request was pushed to server:
https://github.com/hrgdavor/jscadui/pull/80
I updated my tool to make use of new mechanism:
https://github.com/Hermann-SW/GP3D/blob ... view_gzb64
Code:
#!/bin/bashbrowser=firefoxbrowser=chromium-browser$browser "https://jscad.app/#data:application/gzip;base64,`gzip -c $1 | base64 -w 0`"
I did run with 27303-bytes model I created with GP3D:
Code:
pi@raspberrypi5:~/GP3D $ tools/view_gzb64 gp.jscadOpening in existing browser session.pi@raspberrypi5:~/GP3D $
If you select the matching options in dialog left bottom, it should look similar to this:
P.S:
I did performance measurements for that model today, on jscad.app and on openjscad.xyz.
It turned out my Pi5 is 50% faster than my Intel Celeron j4125 running Ubunutu.
And jscad.app did render twice as fast as openjscad.xyz:
https://github.com/hrgdavor/jscadui/iss ... 2094591404
Statistics: Posted by HermannSW — Mon Jan 22, 2024 8:53 pm