A small new open-source project for rounded OpenSCAD objects....

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

A small new open-source project for rounded OpenSCAD objects....

RobertLRead

Hi. Based on some informal searches, myself and Avinash Baskaran have
created a new open-source tiny project for creating rounded objects.

https://github.com/PubInv/SCAD-fillet-tools
<https://github.com/PubInv/SCAD-fillet-tools>  

This is part of our non-profit,  Public Invention
<https://pubinv.github.io/PubInv/>  .



This is heart of the single file we have right now, but it seems to work
nicely.

module rcone(coneTopRadius, coneBottomRadius, h,topCurveRadius,
bottomCurveRadius) {

    rct = coneTopRadius;
    rcb = coneBottomRadius;
   
    rcut = topCurveRadius;
    rcub = bottomCurveRadius;
   
    hull(){
        translate([0,0,(h/2 - rcut)])      
       rotate_extrude(convexity = 10)
        translate([rct-rcut, 0, 0])
       circle(r = rcut, $fn = 100);
       
         translate([0,0,-(h/2 - rcub)])      
       rotate_extrude(convexity = 10)
        translate([rcb-rcub, 0, 0])
       circle(r = rcub, $fn = 100);
    }
}

module rcyl(r,h,rc) {
    rcone(r,r,h,rc,rc);
    }



--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: A small new open-source project for rounded OpenSCAD objects....

MichaelAtOz
Administrator
Picture=30000bytes

<http://forum.openscad.org/file/t359/Capture_rcone.jpg>

You could improve it with center= the same way as cylinder() does.



-----
Admin - email* me if you need anything, or if I've done something stupid...

* click on my MichaelAtOz label, there is a link to email me.

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!
--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

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!
Reply | Threaded
Open this post in threaded view
|

Re: A small new open-source project for rounded OpenSCAD objects....

RobertLRead
Thanks --- I created an "issue" in GitHub for that.



--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: A small new open-source project for rounded OpenSCAD objects....

cacb
In reply to this post by RobertLRead
On 2019-09-06 02:15, RobertLRead wrote:
> Hi. Based on some informal searches, myself and Avinash Baskaran have
> created a new open-source tiny project for creating rounded objects.
>
> https://github.com/PubInv/SCAD-fillet-tools

That's useful, but an approach based on hull() will be limited to convex
shapes only.

Carsten Arnholm

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org