Skip to content

assign() deprecated warning #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
usaps opened this issue May 9, 2019 · 0 comments · May be fixed by #3
Open

assign() deprecated warning #1

usaps opened this issue May 9, 2019 · 0 comments · May be fixed by #3

Comments

@usaps
Copy link

usaps commented May 9, 2019

If on OpenScad you get a warning for the assign()

just change if with this code:

union () { for (i=[1:res]) { point1=involute (base_radius,start_angle+(stop_angle - start_angle)*(i-1)/res); point2=involute (base_radius,start_angle+(stop_angle - start_angle)*i/res); { side1_point1=rotate_point (centre_angle, point1); side1_point2=rotate_point (centre_angle, point2); side2_point1=mirror_point (rotate_point (centre_angle, point1)); side2_point2=mirror_point (rotate_point (centre_angle, point2)); { polygon ( points=[[0,0],side1_point1,side1_point2,side2_point2,side2_point1], paths=[[0,1,2,3,4,0]]); } } } }

@HannahRy HannahRy linked a pull request Mar 24, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant