Parametric 3D models using JavaScript and JSCAD.
Clone the Git repository and install dependencies via Node's npm:
git clone https://github.com/aharren/parametric-3d-models.git
cd parametric-3d-models
npm install
Use Visual Studio Code and the JSCAD Preview extension. A preview of a model can be opened via the "Preview JSCAD Model" command, available in the command palette or context menu of the model file. Whenever the mode file is saved, the preview will update.
Run the model-to-stla script and pass the name of the model file to create an STL text file from the model.
Example:
./model-to-stla models/box/box.js
