discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

BOSL2 - chamfer_hole_mask() ?

RV
Roel Vanhout
Sun, Mar 3, 2024 7:49 PM

Hello,

I'm back to doing chamfering inside OpenSCAD after playing a bit with doing
the chamfering/filleting as a second step manually in Blender. That got
tiresome really quick. I've now read the BOSL2 docs a few times more and
maybe I understand it enough now to use :)  My question is: there is a
chamfer_cylinder_mask(), but from what I can tell, not the 'hole
equivalent' of it, i.e. countersinking a hole. Say I have this:

[image: image.png]

How do I make a chamfer on the inside of the hole in a way that is as
convenient as chamfer_cylinder_mask, i.e. without constructing and
difference()'ing a cone manually? Thanks.

cheers

Roel

Hello, I'm back to doing chamfering inside OpenSCAD after playing a bit with doing the chamfering/filleting as a second step manually in Blender. That got tiresome really quick. I've now read the BOSL2 docs a few times more and maybe I understand it enough now to use :) My question is: there is a chamfer_cylinder_mask(), but from what I can tell, not the 'hole equivalent' of it, i.e. countersinking a hole. Say I have this: [image: image.png] How do I make a chamfer on the inside of the hole in a way that is as convenient as chamfer_cylinder_mask, i.e. without constructing and difference()'ing a cone manually? Thanks. cheers Roel
RD
Revar Desmera
Mon, Mar 4, 2024 1:31 AM

In BOSL2, you can chamfer a hole by just differencing away a cyl() with a negative chamfer size.

For example:

diff()
cyl(h=50, d=50, chamfer=5)
    tag("remove") cyl(h=50.01, d=20, chamfer=-5);

or:

difference() {
    cyl(h=50, d=50, chamfer=5);
    cyl(h=50.01, d=20, chamfer=-5);
}

Both of which give the following:

  • Revar

On Mar 3, 2024, at 11:49 AM, Roel Vanhout via Discuss discuss@lists.openscad.org wrote:

Hello,

I'm back to doing chamfering inside OpenSCAD after playing a bit with doing the chamfering/filleting as a second step manually in Blender. That got tiresome really quick. I've now read the BOSL2 docs a few times more and maybe I understand it enough now to use :)  My question is: there is a chamfer_cylinder_mask(), but from what I can tell, not the 'hole equivalent' of it, i.e. countersinking a hole. Say I have this:

<image.png>

How do I make a chamfer on the inside of the hole in a way that is as convenient as chamfer_cylinder_mask, i.e. without constructing and difference()'ing a cone manually? Thanks.

cheers

Roel


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

In BOSL2, you can chamfer a hole by just differencing away a `cyl()` with a negative chamfer size. For example: diff() cyl(h=50, d=50, chamfer=5) tag("remove") cyl(h=50.01, d=20, chamfer=-5); or: difference() { cyl(h=50, d=50, chamfer=5); cyl(h=50.01, d=20, chamfer=-5); } Both of which give the following: - Revar > On Mar 3, 2024, at 11:49 AM, Roel Vanhout via Discuss <discuss@lists.openscad.org> wrote: > > Hello, > > I'm back to doing chamfering inside OpenSCAD after playing a bit with doing the chamfering/filleting as a second step manually in Blender. That got tiresome really quick. I've now read the BOSL2 docs a few times more and maybe I understand it enough now to use :) My question is: there is a chamfer_cylinder_mask(), but from what I can tell, not the 'hole equivalent' of it, i.e. countersinking a hole. Say I have this: > > <image.png> > > How do I make a chamfer on the inside of the hole in a way that is as convenient as chamfer_cylinder_mask, i.e. without constructing and difference()'ing a cone manually? Thanks. > > cheers > > Roel > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org