Cette page vous donne les différences entre la révision choisie et la version actuelle de la page.
animations:ateliers_openscad:exercices:defi_cube-perce [2020/03/27 19:10] plogingenu |
animations:ateliers_openscad:exercices:defi_cube-perce [2020/03/30 15:21] (Version actuelle) plogingenu |
||
---|---|---|---|
Ligne 4: | Ligne 4: | ||
{{{project | {{{project | ||
logiciels: OpenSCAD | logiciels: OpenSCAD | ||
- | fichiers: | + | fichiers:{{:animations:ateliers_openscad:exercices:defi_openscad_cube_carre_.stl|}} {{:animations:ateliers_openscad:exercices:defi_openscad_cube_carre_.scad|}} |
usager: bully plogingenu | usager: bully plogingenu | ||
licence:cc-by-sa | licence:cc-by-sa | ||
Ligne 10: | Ligne 10: | ||
- | {{:animations:ateliers_openscad:exercices:entonnoir.png?200 }} | + | {{:animations:ateliers_openscad:exercices:defiopenscad_cube-perce.png?200 }} |
**Consigne : Reproduire la figure ci-dessous !** | **Consigne : Reproduire la figure ci-dessous !** | ||
- | * méthode A : ? lignes & ? fonctions différentes | + | * méthode A : 7 lignes & 5 fonctions différentes |
- | {{:animations:ateliers_openscad:exercices:cn2_openscad_defi-entonnoir_hm.stl | Voir l'objet en 3D}} | + | {{:animations:ateliers_openscad:exercices:defi_openscad_cube_carre_.stl | Voir l'objet en 3D}} |
Besoin d'aide, lisez la suite ! | Besoin d'aide, lisez la suite ! | ||
Ligne 67: | Ligne 66: | ||
**méthode A :** | **méthode A :** | ||
- | - ... | + | - Pensez bien à centrer les pièces //center=true// |
Ligne 77: | Ligne 75: | ||
**méthode A :** | **méthode A :** | ||
<code java> | <code java> | ||
- | .... | + | $fn=100; |
+ | difference(){ | ||
+ | cube(50,center=true); | ||
+ | cylinder(r=10,h=120, center=true); | ||
+ | rotate([90,0,0]){cylinder(r=10,h=120,center=true);} | ||
+ | rotate([0,90,0]){cylinder(r=10,h=120,center=true);} | ||
+ | sphere(r=20); | ||
+ | } | ||
</code> | </code> | ||