[OpenSCAD] flange

nop head nop.head at gmail.com
Fri Oct 19 15:56:35 EDT 2018


Yes of course. Here is a slightly simplified version:

module make_ring_of (radius, count)
    for (a = [0: count - 1])
        rotate(a * 360 /count)
            translate ([radius, 0])
                children ();

module oval()
    scale([2.5, 1])
        circle(10);

difference () {
    cylinder (h=8, r=50); //big flange
    $fn = 36;           // how fine to be the ellipse AND the holes
    linear_extrude(height = 17, center = true)
        offset(r = 0.15)
            oval();

    make_ring_of (radius = 30, count = 4)// outside small holes and how many
        cylinder (r = 4, h = 17, center = true);// dimension of the outside
holes
}

Rather than translate to a point on a circle and then rotate the child I
have just translated along the radius and then rotated the translated
child.

I am not sure why you offset the oval. You could just pass the expanded size





On Fri, 19 Oct 2018 at 19:25, roland78 <davidroland78 at gmail.com> wrote:

> Yes,nophead.Like yours is what i need.Can i have the code? Thank you.
>
>
>
> --
> Sent from: http://forum.openscad.org/
>
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20181019/3d2ee9a2/attachment.html>


More information about the Discuss mailing list