Closed larchuto closed 1 year ago
Ok, found out that since I was using the version that comes with pip I fixed something partially fixed by #65… (my apologize)
But my PR may not be as useless as it seems because in cases like a = b + c
where c
is a union but not b
there is still a uselless union()
repetition with the actual code base.
example:
part = union() (cube(1), cube(2))
final_part = cylinder(d=5,h=10) + part
scad_render_to_file(final_part, "cylinder_pusher(generated).scad")
output code:
union() {
cylinder(d = 5, h = 10);
union() {
cube(size = 1);
cube(size = 2);
}
}
Avoid useless repetition of unions/differences or intersections.
test code (union case):
output code without fix:
output code with fix: