Commit 66f315b4 by Frederic GOUALARD 💬

### Ajout proposition design.

parent 25267df1
 /* Cree XLamp XP-ED Royal Blue + 10mm x 10mm Pad https://www.lumitronix.com/fr_fr/cree-xp-e2-smd-led-bleu-royal-avec-platine-10x10mm-550mw-68181.html Illumination (solid angle of the cone in steradian): 100%: 30° 90%: 50° 80%: 55° 60%: 65° 50%: 70° */ eps=0.05; /* cree_xp_e2([light, sr, l]) light: if true, draw an illumination cone sr: solid angle of the illumination cone l: height of the illumination cone */ module cree_xp_e2(light=false,sr=50,l=30) { translate([-3.45/2,-3.45/2,0]) color("LimeGreen") cube([3.45,3.45,0.73]); intersection() { translate([-1.53,-1.53,.58]) cube([1.53*2,1.53*2,1.53]); translate([0,0,.58]) color("HoneyDew") sphere(r=1.53,\$fn=20); } if (light) { #translate([0,0,0.58]) cylinder(h=l,r1=1.45,r2=l*tan(sr)); } } module pcb_cree() { // Sizes of the pcb only guessed for now as they are not specified fully // on the abovementioned page. difference() { translate([-10/2,-10/2,0]) color("DimGray") cube([10,10,2]); translate([-(5-1.2),-(5-1.2),-eps/2]) cylinder(d=1.5,h=4.1-eps,\$fn=20); translate([5-1.2,5-1.2,-eps/2]) cylinder(d=1.5,h=4.1-eps,\$fn=20); } // Pads translate([-(5-.2),-3.5/2,1.9]) color("Silver") cube([2,3.5,.2]); translate([(5-.2-2),-3.5/2,1.9]) color("Silver") cube([2,3.5,.2]); } module cree_and_pcb(light=false,sr=50,l=30) { pcb_cree(); translate([0,0,2]) cree_xp_e2(light,sr,l); } cree_and_pcb(light=true);
 /* Modélisation d'un pilulier de 50x21 mm */ module bouchon() { color("RosyBrown") cylinder(d=23,h=12); } module pilulier() { color("HoneyDew") cylinder(d=21,h=50); } pilulier(); module pilulier_bouchon() { pilulier(); translate([0,0,40]) bouchon(); } pilulier_bouchon();