discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Saw this on Facebook, and could not figure out how to do it.

L
larry
Mon, Dec 8, 2025 7:39 PM

I'm not even sure it can be done, so I thought I'd ask here.
I have asked him to post the entire code, but he has not responded yet.

From a post in the "OpenSCAD Academy" group.


I'm looking for something like this but fluidly (the corners are sharp
on the second one when they are rounded on the rest.

include<BOSL2/std.scad>
size = 20;
$fa=1;$fs=.3;
cuboid(size, rounding=2, except=BOT);
translate([0,0,-size/2]) cuboid([size,size,2], rounding=-2, edges=BOT);

Larry

I'm not even sure it can be done, so I thought I'd ask here. I have asked him to post the entire code, but he has not responded yet. From a post in the "OpenSCAD Academy" group. ----- I'm looking for something like this but fluidly (the corners are sharp on the second one when they are rounded on the rest. ``` include<BOSL2/std.scad> size = 20; $fa=1;$fs=.3; cuboid(size, rounding=2, except=BOT); translate([0,0,-size/2]) cuboid([size,size,2], rounding=-2, edges=BOT); ``` ----- Larry
DP
Dan Perry
Mon, Dec 8, 2025 8:14 PM

Take a look at rounded_prism()
https://github.com/BelfrySCAD/BOSL2/wiki/rounding.scad#functionmodule-rounded_prism.
Example 8 is really close to what you want.

Dan

On Mon, Dec 8, 2025 at 11:39 AM larry via Discuss <
discuss@lists.openscad.org> wrote:

I'm not even sure it can be done, so I thought I'd ask here.
I have asked him to post the entire code, but he has not responded yet.

From a post in the "OpenSCAD Academy" group.


I'm looking for something like this but fluidly (the corners are sharp
on the second one when they are rounded on the rest.

include<BOSL2/std.scad>
size = 20;
$fa=1;$fs=.3;
cuboid(size, rounding=2, except=BOT);
translate([0,0,-size/2]) cuboid([size,size,2], rounding=-2, edges=BOT);

Larry


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Take a look at rounded_prism() https://github.com/BelfrySCAD/BOSL2/wiki/rounding.scad#functionmodule-rounded_prism. Example 8 is really close to what you want. Dan On Mon, Dec 8, 2025 at 11:39 AM larry via Discuss < discuss@lists.openscad.org> wrote: > I'm not even sure it can be done, so I thought I'd ask here. > I have asked him to post the entire code, but he has not responded yet. > > From a post in the "OpenSCAD Academy" group. > > ----- > I'm looking for something like this but fluidly (the corners are sharp > on the second one when they are rounded on the rest. > ``` > include<BOSL2/std.scad> > size = 20; > $fa=1;$fs=.3; > cuboid(size, rounding=2, except=BOT); > translate([0,0,-size/2]) cuboid([size,size,2], rounding=-2, edges=BOT); > ``` > ----- > > Larry > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
L
larry
Mon, Dec 8, 2025 8:57 PM

On Mon, 2025-12-08 at 20:14 +0000, Dan Perry via Discuss wrote:

Take a look at
rounded_prism() https://github.com/BelfrySCAD/BOSL2/wiki/rounding.scad#functionmodule-rounded_prism
.  Example 8 is really close to wht you want.

Thanks Dan! Passed that on and pointed him to this list.

On Mon, 2025-12-08 at 20:14 +0000, Dan Perry via Discuss wrote: > Take a look at > rounded_prism() https://github.com/BelfrySCAD/BOSL2/wiki/rounding.scad#functionmodule-rounded_prism > .  Example 8 is really close to wht you want. Thanks Dan! Passed that on and pointed him to this list.