OpenJsCad: like OpenSCAD, but using JavaScript

by joostn

Printable files (1)

  • stl

    1.stl

    411 Ko · 1 050 downloads

Description

Not sure how to announce this other than by uploading a 'thing'. So here is one.

Enthousiastic about OpenSCAD but somewhat frustrated by the limitations of its language, I've worked on an alternative using Javascript. It's free, completely open source, still seriously under construction, based on Evan Wallace's CSG.js library and can be used in a web browser,

See: http://joostn.github.com/OpenJsCad/

The benefits over openSCAD are mainly in the language itself: you can use dynamic arrays for example, and solids can be stored in variables.

UPDATE: I've added a parser for local files as well. Create your own .jscad files, go to

http://joostn.github.com/OpenJsCad/processfile.html to parse them into an STL file.

UPDATE 2: Here's my first real thing designed with OpenJsCad:

http://www.thingiverse.com/thing:16329

UPDATE 3: Now with interactive parameter editing! Check out:

http://joostn.github.com/OpenJsCad/gearsdemo.html

Syntax has been changed slightly! Solids must now be constructed in, and returned from, the main() function. Previously this was done in global scope of the script.

Tags