Skip to content

elestril/bricks

Repository files navigation

Usage

Default workflow (direct STL generation):

  • Create a new directory, preferably outside this repo, to hold the generated STL files, and cd into that directory.
  • Run ${PATH_TO_REPO}/bin/reference.py --config=${PATH_TO_REPO}/configs/Blanks.yaml --output=$(pwd) (swap the config/output values as needed). The script loads the YAML via bricks/config.py and writes config.json plus .stl assets without touching the deprecated OpenSCAD toolchain.
  • Consume the generated STL files with the slicer of your choice.

Legacy workflow (kept for archival purposes):

  • ${PATH_TO_REPO}/bin.DEPRECATED/configure.py still emits .scad sources and Makefiles compatible with openscad. Only use this path if you explicitly need the historical artifacts; the pytest suite and bin/reference.py no longer call it.

configure.py options

  • --config this is one or multiple of the configs in the configs directory. At least one must be given.
  • if config contains at least one remix config, then --remix_input must be provided. This takes a glob as input,

Shield: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0

PythonSCAD & Testing

The repository also contains a PythonSCAD toolkit (pythonscad/) that mirrors the SCAD primitives in pure Python. The canonical Blank-Wall-4x1 generator now lives in bin/reference.py and is validated through pytest.

Run the PythonSCAD tests with:

pytest tests

Or run pytest from inside tests/. The local conftest.py ensures the repository root is on PYTHONPATH either way. See pythonscad/README.md and tests/README.md for module-level details, helper descriptions, and documented invariants enforced by the suite.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published