discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

create a beveled edge - complicated?

Jan Öhman
Mon, Apr 25, 2022 10:19 AM

HI! I want to create a bevelled edge on a wall.at first I thought of making a rounded edge (easier), but then I got stuck for a bevelled edge.has created a small example below.
The problem I experience is the inside corner - it will not be good.

cubeD=25;cubeW=35;cubeH=8;wall=3;diff1=5;

difference(){  // the Box  difference()  {  cube([cubeW, cubeD, cubeH]);    translate([wall/2, wall/2, wall/2])      cube([cubeW-wall, cubeD+wall, cubeH]);  }    // beveled edge1  translate([cubeW-wall/2, cubeD-wall/2, cubeH])    rotate([90, 90, 0])      cylinder(h=cubeD-wall, d=3, $fn=3);    // beveled edge2  translate([wall/2, cubeD-wall/2, cubeH])    rotate([90, 90, 0])      cylinder(h=cubeD-wall, d=3, $fn=3);    // beveled edge3  translate([wall/2, wall/2, cubeH])    rotate([0, 90, 0])      cylinder(h=cubeW-wall, d=3, $fn=3);}
---==============

Have also tested a cylinder method - but the angles were awful to handle.
---==============hull(){    translate([10,0,10])        rotate([45,0,0])        rotate([90,90,0])          cylinder(h=0.01, d=3, $fn=3);
    translate([10,30,10])     rotate([45,0,0])        rotate([90,90,0])          cylinder(h=0.01, d=3, $fn=3);}
---==============

the circle method below doesn't work at all
---==============  translate([10,10,10])    rotate([45,0,0])      rotate([90,90,0])        linear_extrude(cubeD-wall)          circle(d=3,$fn=3);

HI! I want to create a bevelled edge on a wall.at first I thought of making a rounded edge (easier), but then I got stuck for a bevelled edge.has created a small example below. The problem I experience is the inside corner - it will not be good. ===================== cubeD=25;cubeW=35;cubeH=8;wall=3;diff1=5; difference(){  // the Box  difference()  {  cube([cubeW, cubeD, cubeH]);    translate([wall/2, wall/2, wall/2])      cube([cubeW-wall, cubeD+wall, cubeH]);  }    // beveled edge1  translate([cubeW-wall/2, cubeD-wall/2, cubeH])    rotate([90, 90, 0])      cylinder(h=cubeD-wall, d=3, $fn=3);    // beveled edge2  translate([wall/2, cubeD-wall/2, cubeH])    rotate([90, 90, 0])      cylinder(h=cubeD-wall, d=3, $fn=3);    // beveled edge3  translate([wall/2, wall/2, cubeH])    rotate([0, 90, 0])      cylinder(h=cubeW-wall, d=3, $fn=3);}=============================================== Have also tested a cylinder method - but the angles were awful to handle.===============================================hull(){    translate([10,0,10])        rotate([45,0,0])        rotate([90,90,0])          cylinder(h=0.01, d=3, $fn=3);     translate([10,30,10])     rotate([45,0,0])        rotate([90,90,0])          cylinder(h=0.01, d=3, $fn=3);}=============================================== the circle method below doesn't work at all===============================================  translate([10,10,10])    rotate([45,0,0])      rotate([90,90,0])        linear_extrude(cubeD-wall)          circle(d=3,$fn=3);