OpenJSCAD: Difference between revisions

From BITPlan Wiki
Jump to navigation Jump to search
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
* https://openjscad.org/
= Links =
* [https://openjscad.xyz/ V2 Homepage]
* [https://openjscad.org/ Homepage V1 (down as of 2021-05)]
* [https://github.com/jscad/OpenJSCAD.org github]
* [https://github.com/jscad/OpenJSCAD.org/issues github issues]
* [https://github.com/jscad/OpenJSCAD.org/discussions github discussions]
 
== Deprecated / Outdated ==
* [https://en.wikibooks.org/wiki/OpenJSCAD_User_Guide User Guide]
* [https://openjscad.nodebb.com Forum]
 
= Install =
= Install =
<source lang='bash'>
<source lang='bash'>
sudo npm install -g @jscad/openjscad
sudo npm install -g @jscad/openjscad
</source>
</source>
== Start script ==
I am using the following startscript which i name "oj" and put it in my user's bin directory
<source lang='bash'>
#!/bin/bash
# WF 2019-03-16
cd /usr/local/lib/node_modules/@jscad/openjscad
open index.html
</source>
== Dockerized Version ==
== Dockerized Version ==
see https://github.com/BITPlan/docker-openjscad
see https://github.com/BITPlan/docker-openjscad
Line 12: Line 31:
</source>
</source>
You should then be able to run e.g.
You should then be able to run e.g.
http://localhost:8080/index.html#examples/globe.jscad
* http://localhost:8080/index.html#examples/globe.jscad
= User Guide =
* http://localhost:8080/index.html#examples/workspace/RCHolder
https://en.wikibooks.org/wiki/OpenJSCAD_User_Guide
and the RCHolder folder might be from your own workspace. To fill the RCHolder folder with content you can use the files from:
* https://github.com/BITPlan/docker-openjscad/tree/master/workspace


= GitHub =
== Convert from BlocksCAD? ==
https://github.com/jscad/OpenJSCAD.org
You can save your {{Link|target=BlocksCAD}} designs as Scad files which can (mostly) be directly used with OpenJSCAD.
The conversion from the OpenSCAD syntax to OpenJSCAD is explained in the User's Guide.


== Convert from BlocksCAD? ==
* https://github.com/EinsteinsWorkshop/BlocksCAD/issues/46
* https://github.com/EinsteinsWorkshop/BlocksCAD/issues/46
* https://github.com/EinsteinsWorkshop/BlocksCAD/issues/37
* https://github.com/EinsteinsWorkshop/BlocksCAD/issues/37
[[Category:3DPrint]]
[[Category:3DPrint]]

Latest revision as of 14:05, 30 April 2021

Links

Deprecated / Outdated

Install

sudo npm install -g @jscad/openjscad

Start script

I am using the following startscript which i name "oj" and put it in my user's bin directory

#!/bin/bash
# WF 2019-03-16
cd /usr/local/lib/node_modules/@jscad/openjscad
open index.html

Dockerized Version

see https://github.com/BITPlan/docker-openjscad

The dockerized version allows to mount a "workspace" directory that you can use.

docker run --publish=8080:8080 --name openjscad  --volume $HOME/openjscad/workspace:/openjscad/packages/web/examples/workspace bitplan/openjscad:latest

You should then be able to run e.g.

and the RCHolder folder might be from your own workspace. To fill the RCHolder folder with content you can use the files from:

Convert from BlocksCAD?

You can save your BlocksCAD designs as Scad files which can (mostly) be directly used with OpenJSCAD. The conversion from the OpenSCAD syntax to OpenJSCAD is explained in the User's Guide.