discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: create a beveled edge - complicated?

L
larry
Mon, Apr 25, 2022 1:55 PM

On Mon, 2022-04-25 at 10:19 +0000, Jan Öhman via Discuss wrote:


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

I have no idea how to respond to an HTML email that has an attachment
that is the email itself.

So it is not at all complicated if you use a really great library like
BOSL2.

Here's the relevant URL explaining chamfers (bevels)

https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#module-cuboid

And here's an example I whipped up in about 5 minutes, starting with
the example code for a cuboid chamfer. Made 2 walls only, but you can
figure out the rest easily. Note that the BOSL2 folks may be able to do
the box all at the same time.

include <BOSL2/std.scad>

union() {
cuboid(
[5,60,30], chamfer=4.4,
edges=[TOP+RIGHT],
$fn=24
);

translate([50-2.5,30-2.5,0])
cuboid(
	[100,5,30], chamfer=4.4,
	edges=[TOP+FRONT],
	$fn=24
);

}

On Mon, 2022-04-25 at 10:19 +0000, Jan Öhman via Discuss wrote: > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org I have no idea how to respond to an HTML email that has an attachment that is the email itself. So it is not at all complicated if you use a really great library like BOSL2. Here's the relevant URL explaining chamfers (bevels) https://github.com/revarbat/BOSL2/wiki/shapes3d.scad#module-cuboid And here's an example I whipped up in about 5 minutes, starting with the example code for a cuboid chamfer. Made 2 walls only, but you can figure out the rest easily. Note that the BOSL2 folks may be able to do the box all at the same time. include <BOSL2/std.scad> union() { cuboid( [5,60,30], chamfer=4.4, edges=[TOP+RIGHT], $fn=24 ); translate([50-2.5,30-2.5,0]) cuboid( [100,5,30], chamfer=4.4, edges=[TOP+FRONT], $fn=24 ); }