From 582e30670b3dd1afa6650f71bf20e0360876095a Mon Sep 17 00:00:00 2001 From: Andreas Ortmann Date: Thu, 29 Sep 2016 08:42:52 +0200 Subject: [PATCH] adding nice ufo. --- data/mesh/ship_ufo.scad | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 data/mesh/ship_ufo.scad diff --git a/data/mesh/ship_ufo.scad b/data/mesh/ship_ufo.scad new file mode 100644 index 0000000..b049267 --- /dev/null +++ b/data/mesh/ship_ufo.scad @@ -0,0 +1,26 @@ +difference() { +//union() { + union() { + // body + scale([1,1,0.5]) sphere(1, $fn=32); + + // cockpit + translate([0,0,0.3]) sphere(0.5, $fn=16); + } + + // small balls carved out of the body + smallBallsCirle = 1; + offsetHeight = 0.5; + translate([0, -smallBallsCirle, offsetHeight]) { + union() { + numBalls = 8; + translate([0,1,0]) { + for (i=[0:numBalls]) { + rotate(360*i/numBalls) translate([smallBallsCirle,0,0]) { + sphere(0.45, $fn=12); + } + } + } + } + } +}