updating jscad for website integration
Richard Rouse last edited by
I developed a CMS system using openjscad.js (pre jscad 2). It is OpenJsCad.version = '0.5.1 (2016/06/27). It used openscad.js, jscad-worker.js and jscad-function.js.
It was fun to put together and useful for collecting, openscad, stl, gcode and narratives about how to build the designs. It was written in PHP using an Apache2 web server.
I had to move servers and didn't pay addition to the differences between the old openjscad command line tool (which was used for converting uploaded STL files into jscad files for viewing). Now the current jscad syntax is a bit different since the polyhedron has faces in addition to points and this trips the old code.
So now try to tinker with the current jscad set up but cannot figure out how to just view an stl file on my webroot. Does anyone know of a simple template script that I can use to upgrade this tool from the old code?
z3dev last edited by z3dev
@Richard-Rouse Welcome to the user group.
Looks like you have integrated parts of the V1 website into your custom website. It must have been a fun project.
V1 is still available, but this version is not being maintained any more. If you really need it then check out the V1 branch.
V2 is the currently available, and maintained version. This is totally different and you will have to start again. Sorry.
There's a super small viewer available in the regl-renderer directory. Please see the README for additional information.
Let us know if you have questions. There are several people who have created custom websites.