adding nice ufo.
This commit is contained in:
parent
0f52038a8e
commit
582e30670b
1 changed files with 26 additions and 0 deletions
26
data/mesh/ship_ufo.scad
Normal file
26
data/mesh/ship_ufo.scad
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue