discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] outer form of spiral

DE
David Eccles (gringer)
Tue, Feb 2, 2016 9:05 AM

Did you mean something like this:
http://forum.openscad.org/file/n16019/spiral.png

The things that twist does are a little weird; I don't think there's an easy
function for doing that sort of thing. Here's the code I used to make the
image above:

use <path_extrude.scad>;
h=6;
rad=8;
loops=1.5;
sph=40;
myPoints=([[4,-h],[0,-h],[4-2h,0],[0,h],[4,h]]);
myPath = [ for(t = [0:10:359]) [
rad
cos(loopst),
-rad
sin(loops*t),
t/360 * sph
] ];
path_extrude(points=myPoints, path=myPath,
merge=false, trimEnds = false);

Which needs my path extrude script as well:

http://www.thingiverse.com/thing:186660

--
View this message in context: http://forum.openscad.org/outer-form-of-spiral-tp16009p16019.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Did you mean something like this: <http://forum.openscad.org/file/n16019/spiral.png> The things that twist does are a little weird; I don't think there's an easy function for doing that sort of thing. Here's the code I used to make the image above: use <path_extrude.scad>; h=6; rad=8; loops=1.5; sph=40; myPoints=([[4,-h],[0,-h],[4-2*h,0],[0,h],[4,h]]); myPath = [ for(t = [0:10:359]) [ rad*cos(loops*t), -rad*sin(loops*t), t/360 * sph ] ]; path_extrude(points=myPoints, path=myPath, merge=false, trimEnds = false); Which needs my path extrude script as well: http://www.thingiverse.com/thing:186660 -- View this message in context: http://forum.openscad.org/outer-form-of-spiral-tp16009p16019.html Sent from the OpenSCAD mailing list archive at Nabble.com.
R
Ronaldo
Wed, Feb 3, 2016 11:46 AM

Nice solution. However, I could not achive the same clean design when the
spiral axis is the Y axis:

myPath = [ for(t = [0:10:359]) [
radcos(loopst),
t/360 * sph,
-radsin(loopst)
] ];

It seems that path_extrude is not affine invariant.

--
View this message in context: http://forum.openscad.org/outer-form-of-spiral-tp16009p16025.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Nice solution. However, I could not achive the same clean design when the spiral axis is the Y axis: myPath = [ for(t = [0:10:359]) [ rad*cos(loops*t), t/360 * sph, -rad*sin(loops*t) ] ]; It seems that path_extrude is not affine invariant. -- View this message in context: http://forum.openscad.org/outer-form-of-spiral-tp16009p16025.html Sent from the OpenSCAD mailing list archive at Nabble.com.