$fn = 32; part = "posed"; module limb(len, d=8) { color("#c4b49a") cylinder(h=len, d=d); } module ball(d=10) { color("#d8c8b0") sphere(d=d); } module arm(sh, el, sign) { translate([sign*16, 0, 88]) rotate([0, sh, sign*20]) { ball(10); limb(22); translate([0,0,22]) { ball(8); rotate([0, el, 0]) { limb(20,7); translate([0,0,20]) color("#c4b49a") sphere(d=8); } } } } module leg(hip, kn, sign) { translate([sign*10, 0, 52]) rotate([hip, 0, sign*8]) { ball(12); limb(28,10); translate([0,0,28]) { ball(10); rotate([kn, 0, 0]) { limb(26,9); translate([0,0,26]) color("#8a7a68") scale([1.5, 0.75, 0.4]) sphere(d=12); } } } } module figure(pose=true) { color("#8a7a68") hull() { translate([0,0,90]) sphere(d=22); translate([0,0,58]) sphere(d=26); } translate([0,0,108]) { ball(18); color("#c4b49a") translate([0,8,2]) sphere(d=6); } arm(pose ? -20 : 0, pose ? 40 : 0, 1); // right raised (negative Y rot lifts +Z arm toward -Y? wait) // cylinder along +Z; rotate([0, sh, ...]) around Y: sh=-110 swings +Z toward +X-ish / up when standing // Actually for a Z-up arm, rotate([0,-110,20]) lifts it backward/up. arm(pose ? 20 : 0, pose ? 20 : 0, -1); leg(pose ? 35 : 0, pose ? 55 : 0, 1); leg(pose ? 10 : 0, pose ? 15 : 0, -1); color("#5a5048") translate([0, 8, 0]) cylinder(d=40, h=3); color("#5a5048") translate([0, 8, 3]) cylinder(d=8, h=8); } // Redefine arms with explicit angles after seeing preview: set in the if below module figure2(pose=true) { color("#8a7a68") hull() { translate([0,0,92]) sphere(d=22); translate([0,0,60]) sphere(d=26); } translate([0,0,110]) { ball(18); color("#c4b49a") translate([0,7,3]) sphere(d=6); } // Right arm up translate([16,0,90]) rotate([0, pose?-110:90, 15]) { ball(10); limb(22); translate([0,0,22]) { ball(8); rotate([0, pose?40:0, 0]) { limb(20,7); translate([0,0,20]) color("#c4b49a") sphere(d=8); } } } // Left arm out translate([-16,0,90]) rotate([0, pose?70:-90, -15]) { ball(10); limb(22); translate([0,0,22]) { ball(8); rotate([0, pose?25:0, 0]) { limb(20,7); translate([0,0,20]) color("#c4b49a") sphere(d=8); } } } // Right leg forward lunge translate([10,0,54]) rotate([pose?40:0, 0, 8]) { ball(12); limb(28,10); translate([0,0,28]) { ball(10); rotate([pose?40:0, 0, 0]) { limb(26,9); translate([0,0,26]) color("#8a7a68") scale([1.5,0.75,0.4]) sphere(d=12); } } } // Left leg back, almost straight translate([-10,0,54]) rotate([pose?-20:0, 0, -8]) { ball(12); limb(28,10); translate([0,0,28]) { ball(10); rotate([pose?10:0, 0, 0]) { limb(26,9); translate([0,0,26]) color("#8a7a68") scale([1.5,0.75,0.4]) sphere(d=12); } } } } if (part=="t-pose") figure2(false); else figure2(true);