Commit 0915f162 by Hubert

fixed exploded view

1 parent 0447362e
......@@ -82,7 +82,7 @@ module mirroredgrates(x,y,z) {
module eurobox(x,y,z,handle,handlecaps,pipes,drilled,screws,locked,exploded) {
if ( handlecaps ) color("#5fe") handles(x,y,z,exploded=exploded ? [0,-5,0]:[0,0,0]);
if ( screws ) screws(x,y,z, locked=locked, exploded=exploded ? [-5,-5,0]:[0,0,0]);
if ( screws ) screws(x,y,z, locked=locked, exploded=exploded ? 5:0);
if ( pipes ) pipes(z, exploded=exploded ? [-5,0,0]:[0,0,0]);
difference() {
......
include<eurobox.scad>
include<lid.scad>
translate([0,0,2]) euroboxlid(30,40);
/* translate([0,0,2]) euroboxlid(30,40); */
translate([0,0,-7])
eurobox(30,40,7,handle=false);
/* translate([0,0,-7]) */
/* eurobox(30,40,7,handle=false); */
translate([0,0,6.3])
eurobox(30,40,22,
handle=true,
handlecaps=true,
pipes=true,
drilled=true,
screws=true,
locked=true,
exploded=false
);
/* translate([0,0,6.3]) */
/* eurobox(30,40,22, */
/* handle=true, */
/* handlecaps=true, */
/* pipes=true, */
/* drilled=true, */
/* screws=true, */
/* locked=true, */
/* exploded=false */
/* ); */
translate([0,0,6.3+21.3/* +4 */])
......
......@@ -65,30 +65,30 @@ module hinges(locked) {
/* } */
}
module cornerscrews(z, locked) {
module cornerscrews(z, exploded, locked) {
shift = locked ? 0 : 1.5;
translate([2.4 + shift
, 0.8
, z - 2.66
, z - 2.66 + exploded
])
cornerscrew(z,upside=true);
translate([0.8
, 2.4 + shift
, recess + strength + shimheight
, recess + strength + shimheight - exploded
]) rotate([180,0,0])
cornerscrew(z,upside=false);
translate([gratesize,gratesize,recess+strength]) {
translate([1.3,0,0]) hinges(locked);
rotate([0,0,90]) translate([2.8,0,0]) rotate([0,0,180])hinges(locked);
translate([1.3,0-exploded,0]) hinges(locked);
rotate([0,0,90]) translate([2.8,0+exploded,0]) rotate([0,0,180])hinges(locked);
}
}
module screws(x,y,z, locked, exploded) {
translate(exploded) cornerscrews(22,locked);
mirror([0,1,0]) translate(exploded) translate([0,-y,0]) cornerscrews(22, locked);
mirror([1,0,0]) translate(exploded) translate([-x,0,0]) cornerscrews(22, locked);
mirror([1,0,0]) translate([-x,y,0]) mirror([0,1,0]) translate(exploded) cornerscrews(22, locked);
cornerscrews(22, exploded, locked);
mirror([0,1,0]) translate([0,-y,0]) cornerscrews(22, exploded, locked);
mirror([1,0,0]) translate([-x,0,0]) cornerscrews(22, exploded, locked);
mirror([1,0,0]) translate([-x,y,0]) mirror([0,1,0]) cornerscrews(22, exploded, locked);
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!