//soporte sensores hto=10; htu=2.7; rto=1.7; rtu=3.4; soporte(50,10,4); module soporte(x,y,z) { difference() { union()color("red") { cube(size = [x,y,z]); translate([0,y,0]) cube(size = [x,z,40]); } //tornillos horizontal translate([5,5,0])color("grey") { translate([0,0,-3])cylinder(h =hto, r=rto,$fn=100); translate([0,0,4-htu])rotate([0,0,30])cylinder(h =htu+1, r=rtu,$fn=6); } translate([45,5,0])color("grey") { translate([0,0,-3])cylinder(h =hto, r=rto,$fn=100); translate([0,0,4-htu])rotate([0,0,30])cylinder(h =htu+1, r=rtu,$fn=6); } //tornillos vertical 1 translate([5+rto,14,10]) rotate([90,0,0]) color("grey") { translate([0,0,-3])cylinder(h =hto, r=rto,$fn=100); translate([0,0,4-htu])rotate([0,0,30])cylinder(h =htu+1, r=rtu,$fn=6); } translate([45-rto,14,10])rotate([90,0,0])color("grey") { translate([0,0,-3])cylinder(h =hto, r=rto,$fn=100); translate([0,0,4-htu])rotate([0,0,30])cylinder(h =htu+1, r=rtu,$fn=6); } //tornillos vertical 2 translate([5+rto,14,30]) rotate([90,0,0]) color("grey") { translate([0,0,-3])cylinder(h =hto, r=rto,$fn=100); translate([0,0,4-htu])rotate([0,0,30])cylinder(h =htu+1, r=rtu,$fn=6); } translate([45-rto,14,30])rotate([90,0,0])color("grey") { translate([0,0,-3])cylinder(h =hto, r=rto,$fn=100); translate([0,0,4-htu])rotate([0,0,30])cylinder(h =htu+1, r=rtu,$fn=6); } //roza tuercas color("grey") { translate([5-1.25,10-1,10]) cube([5.9,htu+1,20]); translate([45-4.65,10-1,10]) cube([5.9,htu+1,20]); } //roza tornillos color("grey") { translate([5,10-3,10]) cube([2*rto,hto,20]); translate([45-2*rto,10-3,10]) cube([2*rto,hto,20]); } } }