[OpenSCAD] Monitor Mount

Parkinbot rudolf at digitaldocument.de
Sat Nov 23 15:54:36 EST 2019


For convex shapes, one can use the following solution that builds on hull: 


convex_fillet(10)
  linear_extrude(50)
    offset(0) square([10, 40], center = true); 

module convex_fillet(r=10, n=6)
{
  for(i=[0:n-1])
  {
    w0 = 90/n*i; 
    w1 = 90/n*(i+1); 
    x0 = r*(1-sin(w0)); 
    x1 = r*(1-sin(w1)); 
    y0 = r*(1-cos(w0)); 
    y1 = r*(1-cos(w1)); 
    hull()
    {
      translate([0,0,y0])linear_extrude(.01)
      offset(x0)projection() children();  
      translate([0,0,y1])linear_extrude(.01)
      offset(x1)projection() children(); 
    }
  }
   children(); 
}


<http://forum.openscad.org/file/t887/fillet.png> 



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



More information about the Discuss mailing list