update puzzle to latest version to match solution instructions
[ozzloy@gmail.com/3d-printables] / box-cat.scad
CommitLineData
f7e74804 1/*
2 TODO: box-dog
3 floppy ears
4 chub round tail
5 little tongue
6 TODO: sphere-cow
7*/
8
03d5f1fa 9/* GNU AGPLv3 (or later at your option)
10 see bottom for more license info */
11
12$fn = 50;
13
14// body
f7e74804 15color("red")
03d5f1fa 16cube(30);
17
18// ears
f7e74804 19color("blue"){
03d5f1fa 20translate([5, 5, 29]) {
21 rotate(a = -15, v = [0, 1, 0]) {
22 minkowski() {
23 cylinder(h = 6, r1 = 4, r2 = 0);
24 sphere(1); } } }
25
26translate([30 - 5, 5, 29]) {
27 rotate(a = 15, v = [0, 1, 0]) {
28 minkowski() {
29 cylinder(h = 6, r1 = 4, r2 = 0);
30 sphere(1); } } }
f7e74804 31}
03d5f1fa 32
33// eyes
f7e74804 34color("green"){
03d5f1fa 35translate([7, 3, 20]) {
36 sphere(5); }
37
38translate([30 - 7, 3, 20]) {
39 sphere(5); }
f7e74804 40}
03d5f1fa 41
42// nose
f7e74804 43color("yellow"){
03d5f1fa 44translate([15, 4.5, 19]) {
45 sphere(5); }
f7e74804 46}
03d5f1fa 47
48// front paws
f7e74804 49color("orange"){
03d5f1fa 50translate([0, -5, 0]) {
51 cube([10, 5, 5]); }
52
53translate([30 - 10, -5, 0]) {
54 cube([10, 5, 5]); }
f7e74804 55}
03d5f1fa 56
57// back paws
f7e74804 58color("purple"){
03d5f1fa 59translate([-5, 30 - 10, 0]) {
60 cube([5, 10, 5]); }
61
62translate([30, 30 - 10, 0]) {
63 cube([5, 10, 5]); }
f7e74804 64}
03d5f1fa 65
66// tail
67translate([(30 - 3)/2, 30, 0]) {
68 cube([3, 5, 3]); }
69
70/*
71 This file is part of 3d-printables.
72
73 3d-printables is free software: you can redistribute it and/or modify
74 it under the terms of the GNU Affero General Public License as published by
75 the Free Software Foundation, either version 3 of the License, or
76 (at your option) any later version.
77
78 3d-printables is distributed in the hope that it will be useful,
79 but WITHOUT ANY WARRANTY; without even the implied warranty of
80 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
81 GNU Affero General Public License for more details.
82
83 You should have received a copy of the GNU Affero General Public License
84 along with challenge-bot. If not, see <http://www.gnu.org/licenses/>.
85*/