Commit 0447362e by Hubert

handles split

1 parent 95b1635f
......@@ -80,7 +80,11 @@ module mirroredgrates(x,y,z) {
}
}
module eurobox(x,y,z,handle,pipes,drilled,screws,locked) {
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 ( pipes ) pipes(z, exploded=exploded ? [-5,0,0]:[0,0,0]);
difference() {
color("#888") translate([offset, offset, roundborderInner+strength]) {
difference () {
......@@ -118,9 +122,7 @@ module eurobox(x,y,z,handle,pipes,drilled,screws,locked) {
}
if ( drilled ) drills(x,y,z);
}
if ( screws ) screws(x,y,z, locked=locked, exploded=exploded ? [-5,-5,0]:[0,0,0]);
if ( pipes ) pipes(z, exploded=exploded ? [-5,0,0]:[0,0,0]);
if ( handlecaps ) handles(x,y,z,exploded=exploded ? [0,-5,0]:[0,0,0]);
}
/* eurobox(30,40,22,true); */
......
......@@ -17,6 +17,7 @@ eurobox(30,40,22,
exploded=false
);
translate([0,0,6.3+21.3/* +4 */])
eurobox(30,40,22,
handle=true,
......@@ -25,6 +26,6 @@ eurobox(30,40,22,
drilled=true,
screws=true,
locked=true,
exploded=false
exploded=true
);
This diff could not be displayed because it is too large.
......@@ -3,7 +3,7 @@ include<modules.scad>
/* handleShape(10,10,10); */
module handle(x,y,z,exploded) {
module handleBlock(x,y,z,exploded) {
overlap=0.05;
over=0.2;
translate([offset, offset, roundborderInner+strength]) {
......@@ -14,23 +14,23 @@ module handle(x,y,z,exploded) {
/* handleShape(x,y,z,0,bool=false); */
translate([x/2-8.5-overlap,-2.2-overlap-over,z-6.31-overlap])
/* difference() { */
cube([12.635+(overlap*2),1.7+(overlap*2)+(over*2),3+(overlap*2)]);
cube([12.635+(overlap*2),1.7+(overlap)+(over*2),3+(overlap*2)]);
/* #translate([-1,1.2,0]) cube([2,0.7,2]); */
/* } */
handleShape(x,y,z,0,bool=true, borders=true);
translate([x/2-8.5-overlap,-2.2-overlap-over,z-6.31-overlap]) {
union() {
translate([-1,1.25+over,0]) cube([15,0.7,4]);
translate([4,-1,3-over*2]) cube([4.3,3,4]);
translate([4,0.8,-3.5]) cube([4.3,1,4]);
rotate([-20,0,0]) translate([4,-1,3-over*2]) cube([4.3,3,4]);
rotate([35,0,0]) translate([4,0.7,-4.2]) cube([4.3,1,4]);
}
}
/* } */
/* translate([0,y-4,0])mirror([0,1,0]){ */
/* handleShape(x,y,z,strength,bool=false); */
/* } */
}
translate([x/2-8.5-overlap,-2.2-overlap-over,z-6.31-overlap])
translate([1,1,1])
cube([10.8,2,1]);
......@@ -38,11 +38,37 @@ module handle(x,y,z,exploded) {
}
}
module handles(x,y,z,exploded) {
module handle(x,y,z,inner,exploded) {
gitterdicke=0.1;
durchschuss=0.025;
clip=0.05;
if ( inner ) {
translate(exploded*2)
intersection() {
handleBlock(x,y,z,exploded);
translate([x/2-5.66,0.8,z-5.11-clip])
/* translate([1,1,1]) */
cube([11.4,0.7-gitterdicke/2,1.88+clip*2]);
}
} else {
translate(exploded) {
handle(x,y,z,exploded);
difference() {
handleBlock(x,y,z,exploded);
translate([x/2-5.66-durchschuss,0.8-durchschuss,z-5.11-clip-durchschuss])
/* translate([1,1,1]) */
cube([11.4+durchschuss*2,0.7+gitterdicke/2+durchschuss*2,1.88+clip*2+durchschuss*2]);
}
}
mirror([0,1,0]) translate(exploded) translate([0,-y,0]) {
handle(x,y,z,exploded);
}
}
module handles(x,y,z,exploded) {
handle(x,y,z,false,exploded);
handle(x,y,z,true,exploded);
mirror([0,1,0]) translate([0,-y,0]) {
handle(x,y,z,false,exploded);
handle(x,y,z,true,exploded);
}
}
......@@ -25,7 +25,7 @@ module shapeZ(x,y,z) {
}
}
module handleShape(x,y,z,extra,bool){
module handleShape(x,y,z,extra,bool,borders){
translate([
x/2 - handleWidth/2 - offset,
-( offset+1 ),
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!