Quantcast

Using Polar function r=f(t).

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Using Polar function r=f(t).

Jaacov Molcho
Hi,
Can anyone teach me how to use an Polar function r=f(t) in OpenScad?
I have no problem using for loop to trace the graph of a standard function y=f(x) or parametric function x(t),y(t).
Some polar functions are very difficult to transform  from polar to rectangular.
Jaacov Molcho.  
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using Polar function r=f(t).

thehans
tI attached a small example of one way to use polar functions, let me know if you have any questions.  

It uses OpenSCAD list comprehensions to build a list of 2D points that can be sent to polygon, then extruded.
You can see I included a few example polar functions, you will have to comment and un-comment the "r = ..." lines in this script to see the other functions, and of course try whatever function f(t) that you want.

polar_coordinates.scad
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Using Polar function r=f(t).

Eric Buijs
In reply to this post by Jaacov Molcho
Hi Jaacov,

I created a video tutorial on this topic, starting with a circle function and next creating an ellipse and a sine function. You can find it here: https://www.youtube.com/watch?v=57tpSpBzXZY.

Can you tell us with what specific functions you have difficulty transforming it from polar to x,y coordinates?
Loading...