Outils pour utilisateurs

Outils du site


wiki:projets:cubprim

Cubique Primitif

retour

a=20;
r1=5;
r2=2;

union() {
	translate([a/2,a/2,a/2]) sphere(r1);
	translate([a/2,a/2,a/2]) rotate([0,180,0])cylinder(r=r2,h=a);
	translate([a/2,a/2,-a/2]) sphere(r1);
	translate([a/2,a/2,a/2]) rotate([0,-90,0]) cylinder(r=r2,h=a);
	translate([-a/2,a/2,a/2]) sphere(r1);
	translate([a/2,a/2,a/2]) rotate([90,0,0]) cylinder(r=r2,h=a);
	translate([a/2,-a/2,a/2])sphere(r1);
	translate([-a/2,a/2,-a/2]) sphere(r1);
	translate([-a/2,a/2,-a/2]) cylinder(r=r2,h=a);
	translate([-a/2,a/2,-a/2]) rotate([0,90,0]) cylinder(r=r2,h=a);
	translate([-a/2,a/2,-a/2]) rotate([90,0,0]) cylinder(r=r2,h=a);
	translate([-a/2,-a/2,-a/2]) sphere(r1);
	translate([-a/2,-a/2,a/2]) sphere(r1);
	translate([-a/2,-a/2,a/2]) rotate([-90,0,0]) cylinder(r=r2,h=a);
	translate([-a/2,-a/2,-a/2]) cylinder(r=r2,h=a);
	translate([-a/2,-a/2,a/2]) rotate([0,90,0]) cylinder(r=r2,h=a);
	translate([a/2,-a/2,-a/2]) sphere(r1);
	translate([a/2,-a/2,-a/2]) cylinder(r=r2,h=a);
	translate([a/2,-a/2,-a/2]) rotate([-90,0,0]) cylinder(r=r2,h=a);
	translate([a/2,-a/2,-a/2]) rotate([0,-90,0]) cylinder(r=r2,h=a);
}
wiki/projets/cubprim.txt · Dernière modification: 2016/09/11 12:59 (modification externe)