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/
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...
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.
Sent from: http://forum.openscad.org/
Thanks --- I created an "issue" in GitHub for that.
--
Sent from: http://forum.openscad.org/
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.
That's useful, but an approach based on hull() will be limited to convex
shapes only.
Carsten Arnholm