Fixed sws_ola
This commit is contained in:
parent
ba675fb763
commit
a335f2f5ce
19 changed files with 311413 additions and 33 deletions
|
@ -12,6 +12,7 @@ def stl_from_1d(data, output, scale=[1, 1, 1], translate=[0, 0, 0]):
|
|||
np.savetxt(tmpdir.joinpath("data.dat"), np.stack((data, data)))
|
||||
with open(tmpdir.joinpath("scad"), "wt") as scad:
|
||||
scad.write(
|
||||
f"mirror([1, 0, 0])"
|
||||
f"translate({translate})"
|
||||
f"scale({scale})"
|
||||
f"""surface("data.dat");"""
|
||||
|
|
Reference in a new issue