Swap deprecated assign() calls for let(); https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Conditional_and_Iterator_Functions#Assign_Statement
This commit is contained in:
parent
a700b7e8cb
commit
f957022442
|
@ -266,13 +266,13 @@ module involute_bevel_gear_tooth (
|
||||||
{
|
{
|
||||||
for (i=[1:res])
|
for (i=[1:res])
|
||||||
{
|
{
|
||||||
assign (
|
let (
|
||||||
point1=
|
point1=
|
||||||
involute (base_radius*2,start_angle+(stop_angle - start_angle)*(i-1)/res),
|
involute (base_radius*2,start_angle+(stop_angle - start_angle)*(i-1)/res),
|
||||||
point2=
|
point2=
|
||||||
involute (base_radius*2,start_angle+(stop_angle - start_angle)*(i)/res))
|
involute (base_radius*2,start_angle+(stop_angle - start_angle)*(i)/res))
|
||||||
{
|
{
|
||||||
assign (
|
let (
|
||||||
side1_point1 = rotate_point (centre_angle, point1),
|
side1_point1 = rotate_point (centre_angle, point1),
|
||||||
side1_point2 = rotate_point (centre_angle, point2),
|
side1_point2 = rotate_point (centre_angle, point2),
|
||||||
side2_point1 = mirror_point (rotate_point (centre_angle, point1)),
|
side2_point1 = mirror_point (rotate_point (centre_angle, point1)),
|
||||||
|
|
|
@ -20,7 +20,7 @@ difference() {
|
||||||
translate([(i * i + i)/2 + 3 * i , 8,-1])
|
translate([(i * i + i)/2 + 3 * i , 8,-1])
|
||||||
polyhole(h = 5, d = i);
|
polyhole(h = 5, d = i);
|
||||||
|
|
||||||
assign(d = i + 0.5)
|
let(d = i + 0.5)
|
||||||
translate([(d * d + d)/2 + 3 * d, 19,-1])
|
translate([(d * d + d)/2 + 3 * d, 19,-1])
|
||||||
polyhole(h = 5, d = d);
|
polyhole(h = 5, d = d);
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ module ball_groove2(pitch, length, diameter, ball_radius, slices=200){
|
||||||
offset = length/slices;
|
offset = length/slices;
|
||||||
union(){
|
union(){
|
||||||
for (i = [0:slices]) {
|
for (i = [0:slices]) {
|
||||||
assign (z = i*offset){
|
let (z = i*offset){
|
||||||
translate(helix_curve(pitch, radius, z)) sphere(ball_radius, $fa=5, $fs=1);
|
translate(helix_curve(pitch, radius, z)) sphere(ball_radius, $fa=5, $fs=1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue