--- license: cc0-1.0 pretty_name: CadQuarry language: - code tags: - cad - cadquery - procedural-generation - parametric - 3d - synthetic size_categories: - 100K --count \ --config configs/default.toml \ --out ``` To regenerate with all geometry: ```bash cadquarry build --sizes --formats step,stl,render --out datasets/ ``` --- ## Working with the parametric source Each `source` is a standalone Python module with two exports: ```python PARAMS: dict[str, dict] # typed parameter schema def build(p: dict) -> cq.Workplane: ... ``` Run a part with CadQuery installed: ```python import cadquery as cq, json source = ds[0]["source"] params = json.loads(ds[0]["params"]) defaults = {k: v["default"] for k, v in params.items()} ns = {} exec(compile(source, "", "exec"), ns) result = ns["build"](defaults) cq.exporters.export(result, "part.step") ```