You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When function is imported, especially function that renders into array, generated code is incorrect.
Example:
import file transform.scad which contain function
function translation(translation=[], x=0, y=0, z=0) = [
[1, 0, 0, is_undef(translation[0]) ? x : translation[0])],
[0, 1, 0, is_undef(translation[1]) ? x : translation[1])],
[0, 0, 1, is_undef(translation[2]) ? x : translation[2])],
[0, 0, 0, 1]
];
use transform scad:
c = cube([20, 20, 30])
t = translation(x=10, y=20, z=30)
d = multmatrix(t)(c)
print(scad_render(d))