Skip to content

aharren/parametric-models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

191 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parametric 3D and 2D Models

Parametric 3D and 2D models using JavaScript and JSCAD.

Installation

Clone the Git repository and install dependencies via Node's npm:

git clone https://github.com/aharren/parametric-models.git
cd parametric-models
npm install --ignore-scripts

Editing

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.

STL Creation for 3D Objects

Run the model-to-stla script and pass the name of the model file (or folder) to create an STL text file from the 3D objects in the model.

Examples:

./scripts/model-to-stla models/box/box.js
./scripts/model-to-stla models/box

SVG Creation for 2D Objects

Run the model-to-svg script for creating an SVG file from the model's 2D objects.

Examples:

./scripts/model-to-svg models/router-guide-rail-rounded-plate/router-guide-rail-rounded-plate.js
./scripts/model-to-svg models/router-guide-rail-rounded-plate

About

Parametric 3D and 2D models using JavaScript and JSCAD

Topics

Resources

License

Stars

Watchers

Forks

Contributors