Default workflow (direct STL generation):
- Create a new directory, preferably outside this repo, to hold the generated STL files, and
cdinto 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 viabricks/config.pyand writesconfig.jsonplus.stlassets 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.pystill emits.scadsources and Makefiles compatible withopenscad. Only use this path if you explicitly need the historical artifacts; the pytest suite andbin/reference.pyno longer call it.
--configthis is one or multiple of the configs in theconfigsdirectory. At least one must be given.- if config contains at least one remix config,
then
--remix_inputmust be provided. This takes a glob as input,
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
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.
