discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

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

R
RobertLRead
Fri, Sep 6, 2019 12:15 AM

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/

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/
M
MichaelAtOz
Fri, Sep 6, 2019 12:35 AM

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/

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/
R
RobertLRead
Fri, Sep 6, 2019 12:46 AM

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

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

Thanks --- I created an "issue" in GitHub for that. -- Sent from: http://forum.openscad.org/
A
arnholm@arnholm.org
Fri, Sep 6, 2019 4:55 AM

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

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