Pieces3D-pour-le velo

De Les Fabriques du Ponant
Révision datée du 15 août 2014 à 00:19 par Pmaltey (discussion | contributions) (Pieces3D Velo)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à : navigation, rechercher

Ca serait bien de créer une acatégorie qui s'appelle : "Pièces 3D pour..." et que toutes les pages aient en lien "Pieces3D-pour-XXX" dans un but d'uniformisation ;) .

Voici vite fait les lignes Openscad. Je ferais la mise en forme plus tard avec des commentaires.

Attache cable :

$fn=250;

//Pour regler l'epaisser : regler celle des partie1 et partie2 : les cubes de difference ne sont là que pour le cercle ;) module partie1(){ difference(){ hull(){ translate([5+6,0,2])cube([10,12,4.2],center=true); translate([6,0,0])cylinder(r=6,h=4.2); } #translate([3.75+2.5,0,-3])cylinder(r=2.6,h=8); } }

module partie2(){ difference(){ hull(){ translate([5+6,0,2])cube([10,12,4.2],center=true); translate([6,0,0])cylinder(r=6,h=4.2); } #translate([3.75+2.5,0,0])cylinder(r=2.6,h=6); #translate([3.75+2.5,0,-4+1.5])cylinder(r=4.5,h=4); } } rotate([90,0,0])union(){//Pour l'orientation des fibres

difference(){ union(){ translate([2,0,16 ])rotate([0,90+10,0])partie1(); translate([-6,0,16])rotate([0,90-10,0])partie2(); difference(){ translate([0,6,9])rotate([90,0,0])cylinder(r=10,h=12); #rotate([0,90-10,0]) translate([-18,-10,-13.25])cube([20,20,10]); #rotate([0,90+10,0]) translate([-20,-10,3.3])cube([25,20,10]); #translate([0,7,12])rotate([90,0,0])cylinder(r=10,h=14); } } #translate([0,7,3])rotate([90,0,0])cylinder(r=2.5,h=14); #hull(){ translate([0,7,5])rotate([90,0,0])cylinder(r=1,h=14); translate([0,7,8])rotate([90,0,0])cylinder(r=1,h=14); }


}

}


cache pédalier :

$fn=250;

module plein(){ hull(){ // translate([0,0,-4])cylinder(r=10.5,h=1);// MODELE translate([0,0,-4])cylinder(r=11.5,h=1);//POUR IMPRESSION translate([0,0,-1])cylinder(r=13.6,h=1); } cylinder(r=10,h=7);

for(i=[0:6]){translate([0,0,i]) cylinder(r=10.65,h=0.5);}

}

module presque_fini(){ difference(){ plein(); #translate([0,0,-2.5])cylinder(r=9,h=10);


#translate([0,0,-4])cube([10,2,4],center=true); #translate([0,0,-4])rotate([0,0,45])cube([4,4,4],center=true);

#translate([0,0,-8])cylinder(r=13,h=5);


} } difference(){ union(){ presque_fini(); for(j=[0:6]){rotate([0,0,30+60*j])translate([8.5,0,1])rotate([0,0,0])cube([1,8.5,7],center=true);} } #translate([-1,-12,0])cube([2,24,7]); #translate([-12,-1,0])cube([24,2,7]);}


//Test ecrou de 14 ci dessous //rotate([0,0,30])translate([0,0,7])cube([14,5,5],center=true); //OK