Bump, as it didn't make it to the mailing list.
braddo wrote
Hey all, I'm trying to draw a sort of fan and am currently doing it in a
brute force way which isn't working as I would like. Well it works but
rendering is taking too long. I'm quite sure there's a way that's not only
more efficient for rendering but also would allow for more design
flexibility.
Below is the code I'm currently using, basically creating a symmetrical
foil by changing the scaling factor of cylinders as rotated through an
arc.
I'm thinking a surface spline could do this better, but don't really know
how to use that approach. Have searched and found libraries like
nSplines() which seem crazy powerful, but I can't figure out how one would
choose the points for the matrix (or what the columns of the matrix are
intended to represent).
Meanwhile, it would be cool to be able to control the edge of these little
fan blades as well, making sort of a yin/yang shape.
Anybody have a suggestion or a link to a tutorial that could get me
started?
Thanks!
CoreR = 12;
Triple = 59;
BladeLen = 20;
module Blades(){
for(i=[0,120,240]){
rotate([0,i,0])
for(j=[-1:.01:1]){
rotate([0,Triplej,0])
translate([0,0,20]) rotate([0,j1.4,0]) // want the edges to be
parallel
scale([4cos(j90)+.5,4cos(j90)+.5,1])
cylinder(center=true, r=0.75,h=BladeLen);
}
}
}
Blades();
Admin - PM me if you need anything, or if I've done something stupid...
Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.
The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
View this message in context: http://forum.openscad.org/Splines-for-drawing-fan-blades-tp16784p16807.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Bump, as it didn't make it to the mailing list.
braddo wrote
> Hey all, I'm trying to draw a sort of fan and am currently doing it in a
> brute force way which isn't working as I would like. Well it works but
> rendering is taking too long. I'm quite sure there's a way that's not only
> more efficient for rendering but also would allow for more design
> flexibility.
>
> Below is the code I'm currently using, basically creating a symmetrical
> foil by changing the scaling factor of cylinders as rotated through an
> arc.
>
> I'm thinking a surface spline could do this better, but don't really know
> how to use that approach. Have searched and found libraries like
> nSplines() which seem crazy powerful, but I can't figure out how one would
> choose the points for the matrix (or what the columns of the matrix are
> intended to represent).
>
> Meanwhile, it would be cool to be able to control the edge of these little
> fan blades as well, making sort of a yin/yang shape.
>
> Anybody have a suggestion or a link to a tutorial that could get me
> started?
>
> Thanks!
>
> CoreR = 12;
> Triple = 59;
> BladeLen = 20;
>
> module Blades(){
> for(i=[0,120,240]){
> rotate([0,i,0])
> for(j=[-1:.01:1]){
> rotate([0,Triple*j,0])
> translate([0,0,20]) rotate([0,j*1.4,0]) // want the edges to be
> parallel
> scale([4*cos(j*90)+.5,4*cos(j*90)+.5,1])
> cylinder(center=true, r=0.75,h=BladeLen);
> }
> }
> }
>
> Blades();
-----
Admin - PM me if you need anything, or if I've done something stupid...
Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.
The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
--
View this message in context: http://forum.openscad.org/Splines-for-drawing-fan-blades-tp16784p16807.html
Sent from the OpenSCAD mailing list archive at Nabble.com.