discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Splines for drawing fan blades?

P
Parkinbot
Mon, May 2, 2016 12:31 AM

are you sure your 2D-shape is not self-intersecting? Try this:

polygon(circle_(1, 20));

http://forum.openscad.org/file/n17269/cir.png

--
View this message in context: http://forum.openscad.org/Splines-for-drawing-fan-blades-tp16784p17269.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

are you sure your 2D-shape is not self-intersecting? Try this: polygon(circle_(1, 20)); <http://forum.openscad.org/file/n17269/cir.png> -- View this message in context: http://forum.openscad.org/Splines-for-drawing-fan-blades-tp16784p17269.html Sent from the OpenSCAD mailing list archive at Nabble.com.
P
Parkinbot
Mon, May 2, 2016 12:44 AM

Use this code instead:

function circle_(L=1, N) = [
for(j=[1,-1], i=[-1:1/N:1])  [jLi, jL/Fatnesscos(i*90)]
];

and look at your radius. You use 800, this has no effect. Try this:

module Blades(){
intersection(){
for(i=[0,120,240])
rotate([0,i,0]) sweep(C);
rotate([90,0,0]) cylinder(center=true, r=40, h=400);
}
}

--
View this message in context: http://forum.openscad.org/Splines-for-drawing-fan-blades-tp16784p17271.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Use this code instead: function circle_(L=1, N) = [ for(j=[1,-1], i=[-1:1/N:1]) [j*L*i, j*L/Fatness*cos(i*90)] ]; and look at your radius. You use 800, this has no effect. Try this: module Blades(){ intersection(){ for(i=[0,120,240]) rotate([0,i,0]) sweep(C); rotate([90,0,0]) cylinder(center=true, r=40, h=400); } } -- View this message in context: http://forum.openscad.org/Splines-for-drawing-fan-blades-tp16784p17271.html Sent from the OpenSCAD mailing list archive at Nabble.com.