diff --git a/docs/prints/square.scad b/docs/prints/square.scad index c5f34d87..9416cf44 100644 --- a/docs/prints/square.scad +++ b/docs/prints/square.scad @@ -7,10 +7,39 @@ square_width = 5; square_size = 60; square_height = 5; -difference() { - cube([square_size, square_size, square_height]); - translate([square_width, square_width, -1]) - cube([square_size-2*square_width, square_size-2*square_width, square_height+2]); - translate([-.5, square_size/2 - 4, -1]) - cube([1, 2, square_height+2]); +module hollow_square() { + difference() { + cube([square_size, square_size, square_height]); + translate([square_width, square_width, -1]) + cube([square_size-2*square_width, square_size-2*square_width, + square_height+2]); + } } + +module notch() { + CUT = 0.01; + depth = .5; + width = 2; + translate([-depth, -width/2, -CUT]) + cube([depth*2, width, square_height + 2*CUT]); +} + +module square_with_notches() { + difference() { + // Start with initial square + hollow_square(); + // Remove four notches on inside perimeter + translate([square_width, square_size/2 - 4, 0]) + notch(); + translate([square_size/2, square_size - square_width, 0]) + rotate([0, 0, 90]) + notch(); + translate([square_size - square_width, square_size/2, 0]) + notch(); + translate([square_size/2, square_width, 0]) + rotate([0, 0, 90]) + notch(); + } +} + +square_with_notches(); diff --git a/docs/prints/square.stl b/docs/prints/square.stl index fdfbc3d2..20b9e5ee 100644 --- a/docs/prints/square.stl +++ b/docs/prints/square.stl @@ -2,20 +2,6 @@ solid OpenSCAD_Model facet normal -1 0 0 outer loop vertex 0 0 0 - vertex 0 26 5 - vertex 0 26 0 - endloop - endfacet - facet normal -1 -0 0 - outer loop - vertex 0 26 5 - vertex 0 0 0 - vertex 0 0 5 - endloop - endfacet - facet normal -1 0 0 - outer loop - vertex 0 28 0 vertex 0 60 5 vertex 0 60 0 endloop @@ -23,92 +9,176 @@ solid OpenSCAD_Model facet normal -1 -0 0 outer loop vertex 0 60 5 - vertex 0 28 0 - vertex 0 28 5 + vertex 0 0 0 + vertex 0 0 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 5 25 5 + vertex 4.5 25 5 + vertex 5 5 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 29 5 5 + vertex 5 5 5 + vertex 29 4.5 5 endloop endfacet facet normal 0 0 1 outer loop vertex 60 60 5 - vertex 55 55 5 + vertex 55.5 31 5 vertex 60 0 5 endloop endfacet facet normal 0 0 1 outer loop vertex 60 60 5 - vertex 5 55 5 + vertex 55 55 5 + vertex 55.5 31 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 60 60 5 + vertex 31 55.5 5 vertex 55 55 5 endloop endfacet facet normal 0 0 1 outer loop + vertex 60 60 5 + vertex 29 55.5 5 + vertex 31 55.5 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 29 55.5 5 vertex 5 55 5 - vertex 0.5 28 5 - vertex 5 5 5 + vertex 29 55 5 endloop endfacet facet normal -0 0 1 outer loop vertex 0 60 5 - vertex 5 55 5 + vertex 29 55.5 5 vertex 60 60 5 endloop endfacet facet normal 0 0 1 outer loop - vertex 0 28 5 vertex 5 55 5 + vertex 4.5 27 5 + vertex 5 27 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 0 0 5 + vertex 4.5 27 5 vertex 0 60 5 endloop endfacet facet normal 0 0 1 outer loop vertex 5 55 5 - vertex 0 28 5 - vertex 0.5 28 5 + vertex 0 60 5 + vertex 4.5 27 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 29 55.5 5 + vertex 0 60 5 + vertex 5 55 5 endloop endfacet facet normal -0 0 1 outer loop + vertex 55.5 29 5 + vertex 60 0 5 + vertex 55.5 31 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 55 5 5 + vertex 55.5 29 5 + vertex 55 29 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 55.5 29 5 vertex 55 5 5 vertex 60 0 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 31 4.5 5 + vertex 55 5 5 + vertex 31 5 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 55 5 5 + vertex 31 4.5 5 + vertex 60 0 5 + endloop + endfacet + facet normal -0 0 1 + outer loop + vertex 29 4.5 5 + vertex 60 0 5 + vertex 31 4.5 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 0 0 5 + vertex 29 4.5 5 + vertex 5 5 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 4.5 27 5 + vertex 0 0 5 + vertex 4.5 25 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 29 4.5 5 + vertex 0 0 5 + vertex 60 0 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 4.5 25 5 + vertex 0 0 5 + vertex 5 5 5 + endloop + endfacet + facet normal 0 0 1 + outer loop + vertex 55.5 31 5 vertex 55 55 5 - endloop - endfacet - facet normal -0 0 1 - outer loop - vertex 5 5 5 - vertex 60 0 5 - vertex 55 5 5 - endloop - endfacet - facet normal -0 0 1 - outer loop - vertex 0.5 26 5 - vertex 5 5 5 - vertex 0.5 28 5 - endloop - endfacet - facet normal -0 0 1 - outer loop - vertex 0 26 5 - vertex 5 5 5 - vertex 0.5 26 5 + vertex 55 31 5 endloop endfacet facet normal 0 0 1 outer loop - vertex 5 5 5 - vertex 0 0 5 - vertex 60 0 5 - endloop - endfacet - facet normal 0 0 1 - outer loop - vertex 0 0 5 - vertex 5 5 5 - vertex 0 26 5 + vertex 55 55 5 + vertex 31 55.5 5 + vertex 31 55 5 endloop endfacet facet normal 1 -0 0 @@ -139,88 +209,172 @@ solid OpenSCAD_Model vertex 0 60 0 endloop endfacet + facet normal 0 0 -1 + outer loop + vertex 5 27 0 + vertex 4.5 27 0 + vertex 5 55 0 + endloop + endfacet + facet normal 0 0 -1 + outer loop + vertex 29 55 0 + vertex 5 55 0 + vertex 29 55.5 0 + endloop + endfacet facet normal 0 0 -1 outer loop vertex 60 0 0 - vertex 55 5 0 + vertex 55.5 29 0 vertex 60 60 0 endloop endfacet facet normal 0 0 -1 outer loop vertex 60 0 0 - vertex 5 5 0 + vertex 55 5 0 + vertex 55.5 29 0 + endloop + endfacet + facet normal 0 0 -1 + outer loop + vertex 60 0 0 + vertex 31 4.5 0 vertex 55 5 0 endloop endfacet facet normal 0 0 -1 outer loop - vertex 0.5 28 0 + vertex 60 0 0 + vertex 29 4.5 0 + vertex 31 4.5 0 + endloop + endfacet + facet normal 0 0 -1 + outer loop + vertex 29 4.5 0 vertex 5 5 0 - vertex 0.5 26 0 + vertex 29 5 0 endloop endfacet facet normal 0 0 -1 outer loop vertex 0 0 0 - vertex 5 5 0 + vertex 29 4.5 0 vertex 60 0 0 endloop endfacet facet normal 0 0 -1 outer loop - vertex 0 26 0 vertex 5 5 0 + vertex 4.5 25 0 + vertex 5 25 0 + endloop + endfacet + facet normal -0 0 -1 + outer loop + vertex 4.5 25 0 + vertex 0 0 0 + vertex 4.5 27 0 + endloop + endfacet + facet normal -0 0 -1 + outer loop + vertex 5 5 0 + vertex 0 0 0 + vertex 4.5 25 0 + endloop + endfacet + facet normal -0 0 -1 + outer loop + vertex 29 4.5 0 + vertex 0 0 0 + vertex 5 5 0 + endloop + endfacet + facet normal 0 0 -1 + outer loop + vertex 55.5 31 0 + vertex 60 60 0 + vertex 55.5 29 0 + endloop + endfacet + facet normal 0 0 -1 + outer loop + vertex 55 55 0 + vertex 55.5 31 0 + vertex 55 31 0 + endloop + endfacet + facet normal 0 0 -1 + outer loop + vertex 55.5 31 0 + vertex 55 55 0 + vertex 60 60 0 + endloop + endfacet + facet normal 0 0 -1 + outer loop + vertex 31 55.5 0 + vertex 55 55 0 + vertex 31 55 0 + endloop + endfacet + facet normal 0 0 -1 + outer loop + vertex 55 55 0 + vertex 31 55.5 0 + vertex 60 60 0 + endloop + endfacet + facet normal 0 0 -1 + outer loop + vertex 29 55.5 0 + vertex 60 60 0 + vertex 31 55.5 0 + endloop + endfacet + facet normal 0 0 -1 + outer loop + vertex 0 60 0 + vertex 29 55.5 0 + vertex 5 55 0 + endloop + endfacet + facet normal 0 0 -1 + outer loop + vertex 0 60 0 + vertex 4.5 27 0 vertex 0 0 0 endloop endfacet facet normal 0 0 -1 outer loop - vertex 5 5 0 - vertex 0 26 0 - vertex 0.5 26 0 - endloop - endfacet - facet normal 0 0 -1 - outer loop - vertex 55 55 0 - vertex 60 60 0 - vertex 55 5 0 - endloop - endfacet - facet normal 0 0 -1 - outer loop - vertex 5 55 0 - vertex 60 60 0 - vertex 55 55 0 - endloop - endfacet - facet normal 0 0 -1 - outer loop - vertex 5 5 0 - vertex 0.5 28 0 - vertex 5 55 0 - endloop - endfacet - facet normal 0 0 -1 - outer loop - vertex 0 28 0 - vertex 5 55 0 - vertex 0.5 28 0 - endloop - endfacet - facet normal 0 0 -1 - outer loop - vertex 5 55 0 + vertex 29 55.5 0 vertex 0 60 0 vertex 60 60 0 endloop endfacet facet normal 0 0 -1 outer loop + vertex 4.5 27 0 vertex 0 60 0 vertex 5 55 0 - vertex 0 28 0 + endloop + endfacet + facet normal -0 0 -1 + outer loop + vertex 55.5 29 0 + vertex 55 5 0 + vertex 55 29 0 + endloop + endfacet + facet normal -0 0 -1 + outer loop + vertex 55 5 0 + vertex 31 4.5 0 + vertex 31 5 0 endloop endfacet facet normal 0 -1 0 @@ -240,6 +394,20 @@ solid OpenSCAD_Model facet normal 1 -0 0 outer loop vertex 5 5 5 + vertex 5 25 0 + vertex 5 25 5 + endloop + endfacet + facet normal 1 0 0 + outer loop + vertex 5 25 0 + vertex 5 5 5 + vertex 5 5 0 + endloop + endfacet + facet normal 1 -0 0 + outer loop + vertex 5 27 5 vertex 5 55 0 vertex 5 55 5 endloop @@ -247,13 +415,27 @@ solid OpenSCAD_Model facet normal 1 0 0 outer loop vertex 5 55 0 - vertex 5 5 5 - vertex 5 5 0 + vertex 5 27 5 + vertex 5 27 0 endloop endfacet facet normal -1 0 0 outer loop vertex 55 5 0 + vertex 55 29 5 + vertex 55 29 0 + endloop + endfacet + facet normal -1 -0 0 + outer loop + vertex 55 29 5 + vertex 55 5 0 + vertex 55 5 5 + endloop + endfacet + facet normal -1 0 0 + outer loop + vertex 55 31 0 vertex 55 55 5 vertex 55 55 0 endloop @@ -261,78 +443,232 @@ solid OpenSCAD_Model facet normal -1 -0 0 outer loop vertex 55 55 5 + vertex 55 31 0 + vertex 55 31 5 + endloop + endfacet + facet normal 0 1 -0 + outer loop + vertex 29 5 0 + vertex 5 5 5 + vertex 29 5 5 + endloop + endfacet + facet normal 0 1 0 + outer loop + vertex 5 5 5 + vertex 29 5 0 + vertex 5 5 0 + endloop + endfacet + facet normal 0 1 -0 + outer loop vertex 55 5 0 + vertex 31 5 5 vertex 55 5 5 endloop endfacet + facet normal 0 1 0 + outer loop + vertex 31 5 5 + vertex 55 5 0 + vertex 31 5 0 + endloop + endfacet facet normal 0 -1 0 outer loop vertex 5 55 0 - vertex 55 55 5 + vertex 29 55 5 vertex 5 55 5 endloop endfacet facet normal 0 -1 -0 outer loop - vertex 55 55 5 + vertex 29 55 5 vertex 5 55 0 - vertex 55 55 0 - endloop - endfacet - facet normal 0 1 -0 - outer loop - vertex 55 5 0 - vertex 5 5 5 - vertex 55 5 5 - endloop - endfacet - facet normal 0 1 0 - outer loop - vertex 5 5 5 - vertex 55 5 0 - vertex 5 5 0 - endloop - endfacet - facet normal -1 0 0 - outer loop - vertex 0.5 26 0 - vertex 0.5 28 5 - vertex 0.5 28 0 - endloop - endfacet - facet normal -1 -0 0 - outer loop - vertex 0.5 28 5 - vertex 0.5 26 0 - vertex 0.5 26 5 + vertex 29 55 0 endloop endfacet facet normal 0 -1 0 outer loop - vertex 0 28 0 - vertex 0.5 28 5 - vertex 0 28 5 + vertex 31 55 0 + vertex 55 55 5 + vertex 31 55 5 endloop endfacet facet normal 0 -1 -0 outer loop - vertex 0.5 28 5 - vertex 0 28 0 - vertex 0.5 28 0 + vertex 55 55 5 + vertex 31 55 0 + vertex 55 55 0 + endloop + endfacet + facet normal 1 -0 0 + outer loop + vertex 4.5 25 5 + vertex 4.5 27 0 + vertex 4.5 27 5 + endloop + endfacet + facet normal 1 0 0 + outer loop + vertex 4.5 27 0 + vertex 4.5 25 5 + vertex 4.5 25 0 + endloop + endfacet + facet normal 0 -1 0 + outer loop + vertex 4.5 27 0 + vertex 5 27 5 + vertex 4.5 27 5 + endloop + endfacet + facet normal 0 -1 -0 + outer loop + vertex 5 27 5 + vertex 4.5 27 0 + vertex 5 27 0 endloop endfacet facet normal 0 1 -0 outer loop - vertex 0.5 26 0 - vertex 0 26 5 - vertex 0.5 26 5 + vertex 5 25 0 + vertex 4.5 25 5 + vertex 5 25 5 endloop endfacet facet normal 0 1 0 outer loop - vertex 0 26 5 - vertex 0.5 26 0 - vertex 0 26 0 + vertex 4.5 25 5 + vertex 5 25 0 + vertex 4.5 25 0 + endloop + endfacet + facet normal 0 -1 0 + outer loop + vertex 29 55.5 0 + vertex 31 55.5 5 + vertex 29 55.5 5 + endloop + endfacet + facet normal 0 -1 -0 + outer loop + vertex 31 55.5 5 + vertex 29 55.5 0 + vertex 31 55.5 0 + endloop + endfacet + facet normal -1 0 0 + outer loop + vertex 31 55 0 + vertex 31 55.5 5 + vertex 31 55.5 0 + endloop + endfacet + facet normal -1 -0 0 + outer loop + vertex 31 55.5 5 + vertex 31 55 0 + vertex 31 55 5 + endloop + endfacet + facet normal 1 -0 0 + outer loop + vertex 29 55 5 + vertex 29 55.5 0 + vertex 29 55.5 5 + endloop + endfacet + facet normal 1 0 0 + outer loop + vertex 29 55.5 0 + vertex 29 55 5 + vertex 29 55 0 + endloop + endfacet + facet normal -1 0 0 + outer loop + vertex 55.5 29 0 + vertex 55.5 31 5 + vertex 55.5 31 0 + endloop + endfacet + facet normal -1 -0 0 + outer loop + vertex 55.5 31 5 + vertex 55.5 29 0 + vertex 55.5 29 5 + endloop + endfacet + facet normal 0 1 -0 + outer loop + vertex 55.5 29 0 + vertex 55 29 5 + vertex 55.5 29 5 + endloop + endfacet + facet normal 0 1 0 + outer loop + vertex 55 29 5 + vertex 55.5 29 0 + vertex 55 29 0 + endloop + endfacet + facet normal 0 -1 0 + outer loop + vertex 55 31 0 + vertex 55.5 31 5 + vertex 55 31 5 + endloop + endfacet + facet normal 0 -1 -0 + outer loop + vertex 55.5 31 5 + vertex 55 31 0 + vertex 55.5 31 0 + endloop + endfacet + facet normal 0 1 -0 + outer loop + vertex 31 4.5 0 + vertex 29 4.5 5 + vertex 31 4.5 5 + endloop + endfacet + facet normal 0 1 0 + outer loop + vertex 29 4.5 5 + vertex 31 4.5 0 + vertex 29 4.5 0 + endloop + endfacet + facet normal -1 0 0 + outer loop + vertex 31 4.5 0 + vertex 31 5 5 + vertex 31 5 0 + endloop + endfacet + facet normal -1 -0 0 + outer loop + vertex 31 5 5 + vertex 31 4.5 0 + vertex 31 4.5 5 + endloop + endfacet + facet normal 1 -0 0 + outer loop + vertex 29 4.5 5 + vertex 29 5 0 + vertex 29 5 5 + endloop + endfacet + facet normal 1 0 0 + outer loop + vertex 29 5 0 + vertex 29 4.5 5 + vertex 29 4.5 0 endloop endfacet endsolid OpenSCAD_Model