Ajout tablette toilettes
This commit is contained in:
parent
6605ee5a53
commit
726278f968
36
Tablette.scad
Normal file
36
Tablette.scad
Normal file
@ -0,0 +1,36 @@
|
||||
// Paramètres
|
||||
e1 = 20;
|
||||
e2 = 17;
|
||||
l2 = 160;
|
||||
l = sin(45) * l2;
|
||||
largeur = 900;
|
||||
d = 32;
|
||||
decalage = 17;
|
||||
|
||||
|
||||
|
||||
// Tuyaux (je rajoute ~ 0.4 ° à la rotation, parce que 6 mm/900 mm de pente)
|
||||
translate([d/2 + 6, largeur,-decalage-d/2])
|
||||
rotate([90+asin(6 / largeur),0,0])
|
||||
cylinder(h = largeur, d = d);
|
||||
|
||||
// Planche 1
|
||||
echo (str("* Planche 1 : ", l," × ", largeur, " × ", e1));
|
||||
color ("Green")
|
||||
cube([l,largeur, e1]);
|
||||
|
||||
// Planche 2
|
||||
echo (str("* Planche 2 : ", l2, " × ", largeur, " × ", e2));
|
||||
color("Blue"){
|
||||
difference(){
|
||||
translate([0,0,- l])
|
||||
rotate(a=[0,-45,0])
|
||||
cube([l2 ,largeur, e2]);
|
||||
translate ([- 2 * e2, -e2, -l -5])
|
||||
cube([2 * e2,largeur + 2 * e2,2 * e2]);
|
||||
translate ([e2, -e2, 0])
|
||||
cube([l,largeur+ 2 * e2, e2]);
|
||||
}
|
||||
}
|
||||
|
||||
echo (str ("Il me faut en tout : ", l + l2 + 2 , " × ", largeur, " × ", e));
|
Loading…
Reference in New Issue
Block a user