Skip to content

About

Code to create 3d-cad files

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

CAD Scripts

Scripts/Code that I wrote to develop 3d models

Options

  1. Build123d
    • Python
  2. OpenSCAD
    • Domain specific language, ".scad", called OpenSCAD

Getting started with Build123d

Note: the requirements.txt, which contains all packages project depends on

I'm going to try out a new python manager, UV.

Installation

Install uv:

$ brew install uv

Install dependencies

$ uv pip install build123d

To install dependencies

$ uv install

Dependencies

Create a uv.lock file, locks exact versions of all dependencies and sub-dependencies

$ uv lock

In contrast, pyproject.toml is the current state of dependencies, not used in reinstallation

To list all dependencies

$ uv pip list

Virtual Environment

Create a virtual environment if one does not exit in folder:

$ uv venv my-name

Activate environment

$ source .venv/bin/activate

Run file with temprorary environment

$ uv run python3 example.py

NOTE: command uv add cannot add to custom environment name (defaults .venv)

$ uv pip install "package-name"
$ uv sync

uv sync is needed cause it adds to TOML file that is automatic if using uv add

Getting started with OpenSCAD

About

Code to create 3d-cad files

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages