$fn = 28; part = "display"; module seg(d, l) { color("#6a8a58") hull() { sphere(d=d); translate([l,0,0]) sphere(d=d*0.9); } } module trex() { translate([0,0,40]) { // body color("#6a8a58") scale([1.6,0.8,1]) sphere(d=36); // neck + head translate([28,0,10]) rotate([0,20,0]) { seg(14, 18); translate([20,0,4]) rotate([0,15,0]) { color("#6a8a58") scale([1.3,0.8,0.8]) sphere(d=20); color("#2a2420") translate([6,6,4]) sphere(d=3); color("#2a2420") translate([6,-6,4]) sphere(d=3); // open jaw color("#8aaa70") translate([10,0,-6]) rotate([0,25,0]) scale([1.2,0.7,0.3]) sphere(d=14); } } // tail for (i=[0:7]) translate([-22-i*12,0, 4-i*1.2]) rotate([0,8,0]) seg(14-i, 12); // legs for (s=[-1,1]) translate([0,s*12,-10]) rotate([s*8, 25, 0]) { color("#6a8a58") cylinder(d=10, h=28); translate([0,0,28]) rotate([0,50,0]) { color("#6a8a58") cylinder(d=8, h=24); translate([4,0,24]) color("#5a7048") scale([1.6,0.8,0.35]) sphere(d=14); } } // tiny arms for (s=[-1,1]) translate([16,s*10,6]) rotate([s*30, 80, 0]) color("#6a8a58") cylinder(d=4, h=14); } } trex();