Hey! This thing is still a Work in Progress. Files, instructions, and other stuff might change!

Coffeescad

120
Downloads
2184
Views
Published on December 3, 2012

Description

Parametric modeling tool similar to OpenScad, but running in your browser, using a Coffeescript base & syntax :
this means support for classes, real variables, advanced iteration etc )
and a better code editor! (line numbers, syntax highlighting, search & replace ...)

Instructions

Hello everyone!
This is the first public release of Coffeescad, a parametric, web based modeling tool: it was born out of:
- love of openscad
- frustration of its limitations as far as code editing and programming language goes (no classes, no real variables etc)
- the great openjscad library
- lots of passionate discussions with other reprapers/tinkerers/coders


The github repository can be found here :
github.com/kaosat-dev/CoffeeSCad


You can give the current version a go here :
kaosat-dev.github.com/CoffeeSCad/

Feedback, bug reports and feature requests are more than welcome!
Hope you will enjoy it!

Ps: The attached zip is just a github snapshot, please use the github repository to get the latest versions instead.
Small Ps : licence is actually MIT
Report as inappropriate

You must be logged in to post a comment.

I totally love the way to create polygons! And the ease with which one gets rounded corners. I've just started playing with it, and it already feels so powerful. Really awesome work!

Genious!
i cant do anything with the files from github but the Demo is awesome!

Absolutely Awesome!!

I miss a couple of things I can't live without and I don't seem to find the way to do them: polyhedrons and rotate_extrude :)

And...

How hard would it be to add tools to create primitives in one click?
(I mean, click on the "cube" button, fill properties, click on add... voila!)

Thanks a lot Aubenc , and sorry for the late reply !
Polyhedrons are not in (yet), but rotate extrude , is :)
You can see it in action in the "shapes" example under file->examples
it works very similarly to openscad:
shape = thingy.extrude  offset: [0, 0, 100]  twist:45  slices:10

You are also completely right about "one click primitive creation", I added that to the list of "issues" on github , which means it will soon be implemented !

This is a cool idea and the web interface looks very nice. However, the one big advantage of OpenSCAD's syntax is that it's very compact and linear, which I think helps make complex geometry readable. It would be useful to see some side-by-side comparison of OpenSCAD and Coffeescad scripts that make the same object.

Hello Emmet, thanks for the kind words.
You are right, a concise syntax is more pleasant to use, that is one of the reasons why I chose Coffeescript over Javascript as the language. 

Coffeescript uses indentation instead of curly braces, so it is also a matter of taste as well, but the examples in the screenshots could also be written like this (for example)

circle = new Circle ( d:100, $fn:10)
instead of 
circle = new Circle  d:100  $fn:10

i'll whip up some more concrete side-by sides if you want, but  please also keep two things in mind:
- coffeescript and thus coffeescad has a lot more "language" features compared to Openscad (real variables, advanced iterators etc)
- the syntax for geometry creation of Coffeescad is not yet final

Cheers!

This is BIG BIG NEWS!!! I love it! Maybe preaching to the choir... but watch this if you dig coding physical things:
https://codebits.eu/intra/s/se...

Thanks a lot Erik ! Nice to hear, especially from you ! (big fan of the Ultimaker!)
Very nice presentation/ overview of both the history and "process" of "3d printing" ! Good to see you spreading the word!