Hi Laszlo,
Here's one simple example:
--snip--
$fa=9;
$fs=0.1;
radLength=10.0;
cylinder(r=radLength,h=1.0,center=false);
toothCount=10;
for(i=[0:toothCount-1]) assign( rotAngle=i*360/toothCount ) {
rotate([0,0,rotAngle])
translate([radLength,0,0.5])
sphere(r=1.0,center=true);
rotate([0,0,rotAngle+180/toothCount])
translate([radLength-1.0,0,1.0])
rotate([0,0,90])
cylinder(r1=1.0,r2=0.5,h=2.0,center=false);
}
--end-snip--
Andrew.
On 2010-03-03, at 11:27 AM, Laszlo KREKACS wrote:
> Hi!
>
> I would like to model a gear,
> where the teeths are not on the side of the cylinder,
> but on the top.
>
> Do you have any ideas, how should I model it in openscad?
>
> I can sketch the concept if it helps...
>
> Best regards,
> Laszlo
> _______________________________________________
> OpenSCAD mailing list
>
[hidden email]
>
http://rocklinux.net/mailman/listinfo/openscad--
"The future is already here. It's just not very evenly distributed" -- William Gibson