buisdikte=86;
hoogte=20;
bloklengte=40;
blokdikte=20;
bd = 2; // dikte vevestigingsbout
tm = 75; //afstand tussen mitsumi's onder buis
mh = 20; //mitsumi height
$fn=200;
/***************************************/
include <ISOThread_20120823.scad>
/***************************************/
dia=buisdikte/2;
module tubeholder(){
   union(){
      difference(){
         union(){
            cylinder(r=dia+hoogte/2,h=hoogte);
            translate([-dia-8,-20-tm/2,0])cube([40,tm+40,20]);
        }
        translate([0,0,-0.1])cylinder(r=dia,h=hoogte+0.2);
      }
      translate([-20,dia,0])rotate([0,0,0])cube([bloklengte,15,hoogte]);
      translate([-20,-dia-blokdikte+5,0])cube([bloklengte,15,hoogte]);
   }
}
module fastner() {
   difference() {
     cube([14,20,20]); //holder1
     translate([-10,10,10])rotate([0,90,0])cylinder(r=3,h=40);
   }
}
difference(){ 
    tubeholder();
    translate([0,-110,-20])cube([100,235,50]);
    //translate([-100,-110,-10])cube([100,235,30]);
}
translate([-dia-mh-2+10,-20-tm/2,0])cube([4,115,20]); //20*20 voor tussen mitsumi
#translate([-55,37.5,20])fastner();
#translate([-55,-57.5,20])fastner();
