From 40548159d21ef625da856f1a328d18fc91675f80 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Wed, 30 Sep 2015 11:50:43 +0200 Subject: [PATCH] pieces dans des modules openscad afin de pouvoir les utiliser plus facilement dans d'autres fichiers --- DESSINS-DXF-OPENSCAD/fixendstop.scad | 43 ++++++------- DESSINS-DXF-OPENSCAD/glissements.scad | 88 ++++++++++++++------------- DESSINS-DXF-OPENSCAD/reprap.scad | 33 +++++++++- DESSINS-DXF-OPENSCAD/rotule.scad | 28 +++++---- DESSINS-DXF-OPENSCAD/structure.scad | 33 ---------- 5 files changed, 115 insertions(+), 110 deletions(-) delete mode 100644 DESSINS-DXF-OPENSCAD/structure.scad diff --git a/DESSINS-DXF-OPENSCAD/fixendstop.scad b/DESSINS-DXF-OPENSCAD/fixendstop.scad index 6557a60..c6b7f40 100644 --- a/DESSINS-DXF-OPENSCAD/fixendstop.scad +++ b/DESSINS-DXF-OPENSCAD/fixendstop.scad @@ -12,29 +12,30 @@ by moebiuseye License GNU-GPL */ - +fixationEndStop(); // Fixation -color([0,0,1]) -difference() { - linear_extrude(height=10) - union() { - translate([9.5,1.7,0]) - square([16.1,5.9]); - translate([13.1,-3.1]) - square([8.7,7]); - translate([0,-3.1]) - square([26.8,2.9]); - } - color([1,0,0]) - translate([5,0,0]) - union(){ - //screw holes - translate([0 ,5 ,3.2])rotate([90,0,0]) cylinder(r=1.5,h=10,$fn=50); - translate([19,1 ,3.2])rotate([90,0,0]) cylinder(r=1.5,h=10,$fn=50); - translate([14.2 ,10,3.2])rotate([90,0,0]) cylinder(r=1.5,h=20,$fn=50); - } +module fixationEndStop(){ + color([0,0,1]) + difference() { + linear_extrude(height=10) + union() { + translate([9.5,1.7,0]) + square([16.1,5.9]); + translate([13.1,-3.1]) + square([8.7,7]); + translate([0,-3.1]) + square([26.8,2.9]); + } + color([1,0,0]) + translate([5,0,0]) + union(){ + //screw holes + translate([0 ,5 ,3.2])rotate([90,0,0]) cylinder(r=1.5,h=10,$fn=50); + translate([19,1 ,3.2])rotate([90,0,0]) cylinder(r=1.5,h=10,$fn=50); + translate([14.2 ,10,3.2])rotate([90,0,0]) cylinder(r=1.5,h=20,$fn=50); + } + } } - /* // For testing / editing diff --git a/DESSINS-DXF-OPENSCAD/glissements.scad b/DESSINS-DXF-OPENSCAD/glissements.scad index 7de4ef3..ca23a0a 100644 --- a/DESSINS-DXF-OPENSCAD/glissements.scad +++ b/DESSINS-DXF-OPENSCAD/glissements.scad @@ -11,57 +11,59 @@ * Gnieark https://blog-du-grouik.tinad.fr * */ +glissement(); +module glissement(){ + difference(){ + union(){ + //Profils de la pièce + linear_extrude (height=7.5) + import (file="profil-axe.dxf", layer="guides-profil-pour-3D", $fn=100); + + translate( [0,0,7.499]) linear_extrude (height=5.001) + import (file="profil-axe.dxf", layer="guides-profil-pour-3D2", $fn=100); -difference(){ - union(){ - //Profils de la pièce - linear_extrude (height=7.5) - import (file="profil-axe.dxf", layer="guides-profil-pour-3D", $fn=100); - - translate( [0,0,7.499]) linear_extrude (height=5.001) - import (file="profil-axe.dxf", layer="guides-profil-pour-3D2", $fn=100); + translate( [0,0,12.499]) linear_extrude (height=7.5) + import (file="profil-axe.dxf", layer="guides-profil-pour-3D", $fn=100); - translate( [0,0,12.499]) linear_extrude (height=7.5) - import (file="profil-axe.dxf", layer="guides-profil-pour-3D", $fn=100); + //les déborts pour appuyer sur la tranche des roulements à billes + translate([-5,31.5,5]) rotate([90,0,0]) bumpForBearing(); + translate([-5,9.5,15]) rotate([90,0,0]) bumpForBearing(); + translate([40,31.5,15]) rotate([90,0,0]) bumpForBearing(); + translate([40,9.5,5]) rotate([90,0,0]) bumpForBearing(); + translate([3.5,-5,5]) rotate([90,0,90]) bumpForBearing(); + translate([25.5,-5,15]) rotate([90,0,90])bumpForBearing(); + translate([3.5,40,15]) rotate([90,0,90]) bumpForBearing(); + translate([25.5,40,5]) rotate([90,0,90]) bumpForBearing(); + } + union(){ + //trous pour les vis de fixation des roulements + translate([-20,-5,5]) rotate([90,0,90]) cylinder(r=1.5,h=35,$fn=50); + translate([20,-5,15]) rotate([90,0,90]) cylinder(r=1.5,h=35,$fn=50); + translate([-20,40,15]) rotate([90,0,90]) cylinder(r=1.5,h=35,$fn=50); + translate([20,40,5]) rotate([90,0,90]) cylinder(r=1.5,h=35,$fn=50); - //les déborts pour appuyer sur la tranche des roulements à billes - translate([-5,31.5,5]) rotate([90,0,0]) bumpForBearing(); - translate([-5,9.5,15]) rotate([90,0,0]) bumpForBearing(); - translate([40,31.5,15]) rotate([90,0,0]) bumpForBearing(); - translate([40,9.5,5]) rotate([90,0,0]) bumpForBearing(); - translate([3.5,-5,5]) rotate([90,0,90]) bumpForBearing(); - translate([25.5,-5,15]) rotate([90,0,90])bumpForBearing(); - translate([3.5,40,15]) rotate([90,0,90]) bumpForBearing(); - translate([25.5,40,5]) rotate([90,0,90]) bumpForBearing(); - } - union(){ - //trous pour les vis de fixation des roulements - translate([-20,-5,5]) rotate([90,0,90]) cylinder(r=1.5,h=35,$fn=50); - translate([20,-5,15]) rotate([90,0,90]) cylinder(r=1.5,h=35,$fn=50); - translate([-20,40,15]) rotate([90,0,90]) cylinder(r=1.5,h=35,$fn=50); - translate([20,40,5]) rotate([90,0,90]) cylinder(r=1.5,h=35,$fn=50); + translate([-5,20,5]) rotate([270,0,0]) cylinder(r=1.5,h=35,$fn=50); + translate([-5,-20,15]) rotate([270,0,0]) cylinder(r=1.5,h=35,$fn=50); + translate([40,20,15]) rotate([270,0,0]) cylinder(r=1.5,h=35,$fn=50); + translate([40,-20,5]) rotate([270,0,0]) cylinder(r=1.5,h=35,$fn=50); - translate([-5,20,5]) rotate([270,0,0]) cylinder(r=1.5,h=35,$fn=50); - translate([-5,-20,15]) rotate([270,0,0]) cylinder(r=1.5,h=35,$fn=50); - translate([40,20,15]) rotate([270,0,0]) cylinder(r=1.5,h=35,$fn=50); - translate([40,-20,5]) rotate([270,0,0]) cylinder(r=1.5,h=35,$fn=50); + //trous élargis pour les têtes des vis + translate([-20,-5,5]) rotate([90,0,90]) cylinder(r=4,h=20,$fn=50); + translate([38,-5,15]) rotate([90,0,90]) cylinder(r=4,h=20,$fn=50); + translate([-20,40,15]) rotate([90,0,90]) cylinder(r=4,h=20,$fn=50); + translate([38,40,5]) rotate([90,0,90]) cylinder(r=4,h=20,$fn=50); - //trous élargis pour les têtes des vis - translate([-20,-5,5]) rotate([90,0,90]) cylinder(r=4,h=20,$fn=50); - translate([38,-5,15]) rotate([90,0,90]) cylinder(r=4,h=20,$fn=50); - translate([-20,40,15]) rotate([90,0,90]) cylinder(r=4,h=20,$fn=50); - translate([38,40,5]) rotate([90,0,90]) cylinder(r=4,h=20,$fn=50); + translate([-5,38,5]) rotate([270,0,0]) cylinder(r=4,h=20,$fn=50); + translate([40,38,15]) rotate([270,0,0]) cylinder(r=4,h=20,$fn=50); - translate([-5,38,5]) rotate([270,0,0]) cylinder(r=4,h=20,$fn=50); - translate([40,38,15]) rotate([270,0,0]) cylinder(r=4,h=20,$fn=50); + translate([-5,-22,15]) rotate([270,0,0]) cylinder(r=4,h=20,$fn=50); + translate([40,-22,5]) rotate([270,0,0]) cylinder(r=4,h=20,$fn=50); - translate([-5,-22,15]) rotate([270,0,0]) cylinder(r=4,h=20,$fn=50); - translate([40,-22,5]) rotate([270,0,0]) cylinder(r=4,h=20,$fn=50); + //trou vis rotule + translate([-40,52,10])rotate([90,0,90]) cylinder(r=1.5,h=120,$fn=50); - //trou vis rotule - translate([-40,52,10])rotate([90,0,90]) cylinder(r=1.5,h=120,$fn=50); - - } + } + } } module bumpForBearing(){ translate([0,0,-0.999])cylinder (r=3, h=1,$fn=50); diff --git a/DESSINS-DXF-OPENSCAD/reprap.scad b/DESSINS-DXF-OPENSCAD/reprap.scad index 428e60d..3bc4203 100644 --- a/DESSINS-DXF-OPENSCAD/reprap.scad +++ b/DESSINS-DXF-OPENSCAD/reprap.scad @@ -1,2 +1,33 @@ +/* +* ReprapJeanne V2 +* +* Vue de la structure de la reprap +* + +* Copyleft (see license file): +* hackerspace Jeanne d'Hack http://www.jeannedhack.org +* Gnieark https://blog-du-grouik.tinad.fr +* +*/ + linear_extrude (height=2000) - import (file="profil-axe.dxf", layer="0", $fn=100); + import (file="baseImprimante3d.dxf", layer="axes", $fn=100); + +translate([0,0,100]) + linear_extrude (height=10) + import (file="baseImprimante3d.dxf", layer="0", $fn=100); +/* +translate([0,0,1990]) + linear_extrude (height=10) + import (file="baseImprimante3d.dxf", layer="0", $fn=100); +*/ + +translate([0,0,5]) + linear_extrude (height=35) + import (file="baseImprimante3d.dxf", layer="liteaux", $fn=100); + +translate([0,0,1965]) + linear_extrude (height=35) + import (file="baseImprimante3d.dxf", layer="liteaux", $fn=100); + + diff --git a/DESSINS-DXF-OPENSCAD/rotule.scad b/DESSINS-DXF-OPENSCAD/rotule.scad index 5027e39..ae072e3 100644 --- a/DESSINS-DXF-OPENSCAD/rotule.scad +++ b/DESSINS-DXF-OPENSCAD/rotule.scad @@ -1,16 +1,20 @@ /* Reprap jeanne * noyau de fixation entre le systeme de glissement et les biellettes */ + $fn=200; -difference(){ - union(){ - translate ([0,0,12]) sphere(7); - translate ([0,0,4]) sphere(7); - translate ([0,0,3.99]) cylinder(r=7,h=8.02); - } - union(){ - translate([0,8,12]) rotate([90,0,0]) cylinder(r=1.8,h=16); - translate([-8,0,4]) rotate([90,90,90]) cylinder(r=1.8,h=16); - translate([-10,-10,-10]) cube([20,20,10]); - } -} \ No newline at end of file +rotule(); +module rotule(){ + difference(){ + union(){ + translate ([0,0,12]) sphere(7); + translate ([0,0,4]) sphere(7); + translate ([0,0,3.99]) cylinder(r=7,h=8.02); + } + union(){ + translate([0,8,12]) rotate([90,0,0]) cylinder(r=1.8,h=16); + translate([-8,0,4]) rotate([90,90,90]) cylinder(r=1.8,h=16); + translate([-10,-10,-10]) cube([20,20,10]); + } + } +} diff --git a/DESSINS-DXF-OPENSCAD/structure.scad b/DESSINS-DXF-OPENSCAD/structure.scad deleted file mode 100644 index 3bc4203..0000000 --- a/DESSINS-DXF-OPENSCAD/structure.scad +++ /dev/null @@ -1,33 +0,0 @@ -/* -* ReprapJeanne V2 -* -* Vue de la structure de la reprap -* - -* Copyleft (see license file): -* hackerspace Jeanne d'Hack http://www.jeannedhack.org -* Gnieark https://blog-du-grouik.tinad.fr -* -*/ - -linear_extrude (height=2000) - import (file="baseImprimante3d.dxf", layer="axes", $fn=100); - -translate([0,0,100]) - linear_extrude (height=10) - import (file="baseImprimante3d.dxf", layer="0", $fn=100); -/* -translate([0,0,1990]) - linear_extrude (height=10) - import (file="baseImprimante3d.dxf", layer="0", $fn=100); -*/ - -translate([0,0,5]) - linear_extrude (height=35) - import (file="baseImprimante3d.dxf", layer="liteaux", $fn=100); - -translate([0,0,1965]) - linear_extrude (height=35) - import (file="baseImprimante3d.dxf", layer="liteaux", $fn=100); - -