https://github.com/aharren/parametric-models
Parametric 3D and 2D models using JavaScript and JSCAD
https://github.com/aharren/parametric-models
3d-models macos parametric-design
Last synced: 6 days ago
JSON representation
Parametric 3D and 2D models using JavaScript and JSCAD
- Host: GitHub
- URL: https://github.com/aharren/parametric-models
- Owner: aharren
- License: mit
- Created: 2025-12-31T11:22:18.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-07-04T12:58:44.000Z (6 days ago)
- Last Synced: 2026-07-04T14:22:16.250Z (6 days ago)
- Topics: 3d-models, macos, parametric-design
- Language: JavaScript
- Homepage:
- Size: 3.79 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Parametric 3D and 2D Models
Parametric 3D and 2D models using JavaScript and [JSCAD](https://github.com/jscad/OpenJSCAD.org).
## Installation
Clone the Git repository and install dependencies via [Node](https://nodejs.org)'s `npm`:
```
git clone https://github.com/aharren/parametric-models.git
cd parametric-models
npm install --ignore-scripts
```
## Editing
Use [Visual Studio Code](https://code.visualstudio.com) and the [JSCAD Preview extension](https://marketplace.visualstudio.com/items?itemName=codingwell-net.codingwell-vscode-jscad). 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
```