## Origin
This is from https://openjscad.org. 
I just made a few changes to use it
as a Node library.  (Made a PR that's been open
for awhile.)

## Node.js (as library)</b>

Add to project: 

```shell
npm i --save jscad 

```

Create a 'lumber' module:

```javascript

require('jscad');

exports._2x4 = function _2x4() {
  return cube({size:[2,4,96]});
}

```

Use your module to build something and render 
to STL file:

```javascript
var cad = require('jscad');
inc('./lumber.js');

function board(n) {
  return [ color('yellow', _2x4().rotateY(210).translate([0,n*24,0])) ] 
}

cad.renderFile(board(0), 'boards.stl');

```

<h2>Documentation</h2>
<ul>
<li><b><a href="https://github.com/Spiritdude/OpenJSCAD.org/wiki/User-Guide">OpenJSCAD User & Programming Guide</a></b>
</ul>

