# Rounding a sharp corner?

5 messages
Open this post in threaded view
|

## Rounding a sharp corner?

 Here's an X shape formed by cutting some ellipses out of a cube. I would like to smooth the sharp corners on the sides by subtracting a shape that will be tangent to the side ellipsis and the side of the cube, as per the red markup in the attached image. How can I calculate that shape, or otherwise smooth the sharp edge? \$fn=30; ZZ=5; WW=42; HH=100; difference() {      cube([WW,HH,ZZ]);      // top and bottom      translate([WW/2,0,0])  scale([1,2.5 ,1]) cylinder(ZZ,d=WW-(10));      translate([WW/2,HH,0]) scale([1,2.5,1]) cylinder(ZZ,d=WW-(10));      // sides      translate([0,HH/2,0]) scale([1,1.8,1]) cylinder(ZZ,r=WW/4);      translate([WW,HH/2,0]) scale([1,1.8,1]) cylinder(ZZ,r=WW/4);      // smooth the arms      // ??? } _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org snapz003.png (36K) Download Attachment
Open this post in threaded view
|

## Re: Rounding a sharp corner?

 Hm, better start in 2D and then try to use offset() for things like this. ZZ=5; WW=42; HH=100; os = 15; linear_extrude(ZZ) intersection() {   square([WW,HH]);   difference()   {     offset(-os)offset(os)     {         translate([WW/2,0])  scale([1,2.5]) circle(d=WW);         translate([WW/2,HH,0]) scale([1,2.5,1]) circle(d=WW);     }       translate([WW/2,0])  scale([1,2.5]) circle(d=WW-(10));       translate([WW/2,HH,0]) scale([1,2.5,1]) circle(d=WW-(10));   } } -- Sent from: http://forum.openscad.org/_______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## Re: Rounding a sharp corner?

 On 8/12/18 5:21 PM, Parkinbot wrote: > Hm, better start in 2D and then try to use offset() for things like this. This is perfect, thanks very much! _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org