discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

chamfers?

D
David
Sun, Dec 6, 2020 10:58 PM

Not sure I'm even using the correct term here, but I would like to have
fillets (?  rounded edges on the facing edge)  on this BL Touch mount. 
I remember something in the intro about that but not much.  How would
one do such a thing for added strength at the joint(s)?

difference() {
    union() {
        translate([0,18,0])
            cube([37,16.67,4]);
        translate([22,18,0])
            cube([6,16.67,30]);
        translate([28,0,0])
            cube([9,19,4]);
    }
    translate([13,22,-.001])
        cylinder(h=6,d=3);
    translate([31,4,-.001])
        cylinder(h=6,d=3);
}

Not sure I'm even using the correct term here, but I would like to have fillets (?  rounded edges on the facing edge)  on this BL Touch mount.  I remember something in the intro about that but not much.  How would one do such a thing for added strength at the joint(s)? difference() {     union() {         translate([0,18,0])             cube([37,16.67,4]);         translate([22,18,0])             cube([6,16.67,30]);         translate([28,0,0])             cube([9,19,4]);     }     translate([13,22,-.001])         cylinder(h=6,d=3);     translate([31,4,-.001])         cylinder(h=6,d=3); }
A
adrianv
Sun, Dec 6, 2020 11:27 PM

I realized as I was starting to write a solution that I don't know which
edge(s) you want rounded.  I made this, but not sure it's what you want:

http://forum.openscad.org/file/t2477/thing.png

skypuppy wrote

Not sure I'm even using the correct term here, but I would like to have
fillets (?  rounded edges on the facing edge)  on this BL Touch mount. 
I remember something in the intro about that but not much.  How would
one do such a thing for added strength at the joint(s)?

difference() {
    union() {
        translate([0,18,0])
            cube([37,16.67,4]);
        translate([22,18,0])
            cube([6,16.67,30]);
        translate([28,0,0])
            cube([9,19,4]);
    }
    translate([13,22,-.001])
        cylinder(h=6,d=3);
    translate([31,4,-.001])
        cylinder(h=6,d=3);
}


OpenSCAD mailing list

Discuss@.openscad

I realized as I was starting to write a solution that I don't know which edge(s) you want rounded. I made this, but not sure it's what you want: <http://forum.openscad.org/file/t2477/thing.png> skypuppy wrote > Not sure I'm even using the correct term here, but I would like to have > fillets (?  rounded edges on the facing edge)  on this BL Touch mount.  > I remember something in the intro about that but not much.  How would > one do such a thing for added strength at the joint(s)? > > difference() { >     union() { >         translate([0,18,0]) >             cube([37,16.67,4]); >         translate([22,18,0]) >             cube([6,16.67,30]); >         translate([28,0,0]) >             cube([9,19,4]); >     } >     translate([13,22,-.001]) >         cylinder(h=6,d=3); >     translate([31,4,-.001]) >         cylinder(h=6,d=3); > } > > > _______________________________________________ > OpenSCAD mailing list > Discuss@.openscad > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org -- Sent from: http://forum.openscad.org/
A
adrianv
Mon, Dec 7, 2020 11:27 AM

Ok.  So the way you create this type of rounded edge is you make a cube where
you want the fillet and subtract the necessary cylinder from it.  I made
this example with the BOSL2 library, changing your code as shown below.  The
"edges" arg tells which edges to round.  The anchor arg positions the cube
correctly.  (It would be nicer to do all the cubes centered, or attached
relative to each other.)  But if you don't want to use that or some other
rounding library then I suggest you write your own function to produce the
correct shape (with the slight extra overlap) because it's kind of fiddly to
get everything in the right place.

include<BOSL2/std.scad>

difference() {
union() {
translate([0,18,0])
cube([37,16.67,4]);
translate([22,18,4])

cuboid([6,16.67,30],rounding=-3,edges=[BOTTOM+LEFT,BOTTOM+RIGHT],anchor=BOTTOM+FRONT+LEFT,$fn=32);
translate([28,0,0])
cube([9,19,4]);
}
translate([13,22,-.001])
cylinder(h=6,d=3);
translate([31,4,-.001])
cylinder(h=6,d=3);
}

adrianv wrote

I realized as I was starting to write a solution that I don't know which
edge(s) you want rounded.  I made this, but not sure it's what you want:

<http://forum.openscad.org/file/t2477/thing.png>

skypuppy wrote

Not sure I'm even using the correct term here, but I would like to have
fillets (?  rounded edges on the facing edge)  on this BL Touch mount. 
I remember something in the intro about that but not much.  How would
one do such a thing for added strength at the joint(s)?

difference() {
    union() {
        translate([0,18,0])
            cube([37,16.67,4]);
        translate([22,18,0])
            cube([6,16.67,30]);
        translate([28,0,0])
            cube([9,19,4]);
    }
    translate([13,22,-.001])
        cylinder(h=6,d=3);
    translate([31,4,-.001])
        cylinder(h=6,d=3);
}


OpenSCAD mailing list

Discuss@.openscad

--
Sent from: http://forum.openscad.org/


OpenSCAD mailing list

Discuss@.openscad

Ok. So the way you create this type of rounded edge is you make a cube where you want the fillet and subtract the necessary cylinder from it. I made this example with the BOSL2 library, changing your code as shown below. The "edges" arg tells which edges to round. The anchor arg positions the cube correctly. (It would be nicer to do all the cubes centered, or attached relative to each other.) But if you don't want to use that or some other rounding library then I suggest you write your own function to produce the correct shape (with the slight extra overlap) because it's kind of fiddly to get everything in the right place. include<BOSL2/std.scad> difference() { union() { translate([0,18,0]) cube([37,16.67,4]); translate([22,18,4]) cuboid([6,16.67,30],rounding=-3,edges=[BOTTOM+LEFT,BOTTOM+RIGHT],anchor=BOTTOM+FRONT+LEFT,$fn=32); translate([28,0,0]) cube([9,19,4]); } translate([13,22,-.001]) cylinder(h=6,d=3); translate([31,4,-.001]) cylinder(h=6,d=3); } adrianv wrote > I realized as I was starting to write a solution that I don't know which > edge(s) you want rounded. I made this, but not sure it's what you want: > > &lt;http://forum.openscad.org/file/t2477/thing.png&gt; > > > skypuppy wrote >> Not sure I'm even using the correct term here, but I would like to have >> fillets (?  rounded edges on the facing edge)  on this BL Touch mount.  >> I remember something in the intro about that but not much.  How would >> one do such a thing for added strength at the joint(s)? >> >> difference() { >>     union() { >>         translate([0,18,0]) >>             cube([37,16.67,4]); >>         translate([22,18,0]) >>             cube([6,16.67,30]); >>         translate([28,0,0]) >>             cube([9,19,4]); >>     } >>     translate([13,22,-.001]) >>         cylinder(h=6,d=3); >>     translate([31,4,-.001]) >>         cylinder(h=6,d=3); >> } >> >> >> _______________________________________________ >> OpenSCAD mailing list > >> Discuss@.openscad > >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > > > > > -- > Sent from: http://forum.openscad.org/ > > _______________________________________________ > OpenSCAD mailing list > Discuss@.openscad > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org -- Sent from: http://forum.openscad.org/