Merge pull request #86 from dimo414/master

Swap deprecated assign() calls for let()
This commit is contained in:
Chow Loong Jin 2021-05-16 15:19:08 +08:00 committed by GitHub
commit bd761409f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -266,13 +266,13 @@ module involute_bevel_gear_tooth (
{
for (i=[1:res])
{
assign (
let (
point1=
involute (base_radius*2,start_angle+(stop_angle - start_angle)*(i-1)/res),
point2=
involute (base_radius*2,start_angle+(stop_angle - start_angle)*(i)/res))
{
assign (
let (
side1_point1 = rotate_point (centre_angle, point1),
side1_point2 = rotate_point (centre_angle, point2),
side2_point1 = mirror_point (rotate_point (centre_angle, point1)),

View file

@ -20,7 +20,7 @@ difference() {
translate([(i * i + i)/2 + 3 * i , 8,-1])
polyhole(h = 5, d = i);
assign(d = i + 0.5)
let(d = i + 0.5)
translate([(d * d + d)/2 + 3 * d, 19,-1])
polyhole(h = 5, d = d);
}

View file

@ -48,7 +48,7 @@ module ball_groove2(pitch, length, diameter, ball_radius, slices=200){
offset = length/slices;
union(){
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);
}
}