Fix deprecated assign() and refactor test_polyholes() module.
This commit is contained in:
parent
60aa3794d2
commit
ca485087cd
|
@ -11,16 +11,13 @@ module polyhole(h, d) {
|
|||
module test_polyhole(){
|
||||
difference() {
|
||||
cube(size = [100,27,3]);
|
||||
union() {
|
||||
for(i = [1:10]) {
|
||||
translate([(i * i + i)/2 + 3 * i , 8,-1])
|
||||
polyhole(h = 5, d = i);
|
||||
|
||||
assign(d = i + 0.5)
|
||||
d = i + 0.5;
|
||||
translate([(d * d + d)/2 + 3 * d, 19,-1])
|
||||
polyhole(h = 5, d = d);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue