How to Create a Limacon of Pascal in a CAD drawing for extrusion etc? Need a .STEP file ultimately.
1 Answer
$\begingroup$
$\endgroup$
1
One possibility would be in OpenSCAD:
module limacon(a, b) {
r = function(a, b, theta) a + b * sin(theta);
polygon([for (t=[0 : 1 : 359])
[r(a,b,t)*sin(t), r(a,b,t)*cos(t)]]);
};
// draw a limacon with the specified parameters:
limacon(3, 5);
With this, we can draw the 3D extruded polygon like this:
linear_extrude(5)
limacon(3, 5);
Which results in a drawing like this:
From there, things get a little more tedious than you'd probably like. At least as far as I know, OpenSCAD can't export directly to a .STEP file, but you can import the OpenSCAD file into FreeCAD, then export the object to a .STEP file from there.
-
$\begingroup$ Very nice answer, I have another question here: engineering.stackexchange.com/questions/60072/… $\endgroup$– DaleCommented Mar 2 at 20:07