From 726278f9683c040dc42a740de231f1ec7737a294 Mon Sep 17 00:00:00 2001 From: Matthieu Dubuget Date: Sun, 18 Nov 2018 13:56:24 +0100 Subject: [PATCH] Ajout tablette toilettes --- Tablette.scad | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Tablette.scad diff --git a/Tablette.scad b/Tablette.scad new file mode 100644 index 0000000..160f73b --- /dev/null +++ b/Tablette.scad @@ -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)); \ No newline at end of file