Added translate option to scad

This commit is contained in:
Edgar P. Burkhart 2022-03-04 13:20:44 +01:00
parent 764e2cc5bc
commit 9a165d5a54
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 12 additions and 5 deletions

View file

@ -28,10 +28,12 @@ out.mkdir(exist_ok=True)
stl_from_1d(
bathy,
out.joinpath("bathy.stl"),
config.get("bathy", "scale"),
config.get("bathy", "scale", fallback=[1,1,1]),
config.get("bathy", "translate", fallback=[0,0,0]),
)
stl_from_1d(
poro,
out.joinpath("poro.stl"),
config.get("bathy", "scale"),
config.get("bathy", "scale", fallback=[1,1,1]),
config.get("bathy", "translate", fallback=[0,0,0]),
)