2014-05-03 22:24:07 +04:00
|
|
|
|
|
|
|
module thing()
|
|
|
|
{
|
2015-03-05 18:30:13 +03:00
|
|
|
$fa = 30;
|
|
|
|
difference() {
|
|
|
|
sphere(r = 25);
|
|
|
|
cylinder(h = 62.5, r1 = 12.5, r2 = 6.25, center = true);
|
|
|
|
rotate(90, [ 1, 0, 0 ]) cylinder(h = 62.5,
|
|
|
|
r1 = 12.5, r2 = 6.25, center = true);
|
|
|
|
rotate(90, [ 0, 1, 0 ]) cylinder(h = 62.5,
|
|
|
|
r1 = 12.5, r2 = 6.25, center = true);
|
|
|
|
}
|
2014-05-03 22:24:07 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
module demo_proj()
|
|
|
|
{
|
2015-03-05 18:30:13 +03:00
|
|
|
linear_extrude(center = true, height = 0.5) projection(cut = false) thing();
|
|
|
|
% thing();
|
2014-05-03 22:24:07 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
module demo_cut()
|
|
|
|
{
|
2015-03-05 18:30:13 +03:00
|
|
|
for (i=[-20:5:+20]) {
|
|
|
|
rotate(-30, [ 1, 1, 0 ]) translate([ 0, 0, -i ])
|
|
|
|
linear_extrude(center = true, height = 0.5) projection(cut = true)
|
|
|
|
translate([ 0, 0, i ]) rotate(+30, [ 1, 1, 0 ]) thing();
|
|
|
|
}
|
|
|
|
% thing();
|
2014-05-03 22:24:07 +04:00
|
|
|
}
|
|
|
|
|
2015-03-04 00:31:48 +03:00
|
|
|
echo(version=version());
|
2014-05-03 22:24:07 +04:00
|
|
|
translate([ -30, 0, 0 ]) demo_proj();
|
|
|
|
translate([ +30, 0, 0 ]) demo_cut();
|
2015-01-14 07:51:56 +03:00
|
|
|
|
|
|
|
// Written by Clifford Wolf <clifford@clifford.at> and Marius
|
|
|
|
// Kintel <marius@kintel.net>
|
|
|
|
//
|
|
|
|
// To the extent possible under law, the author(s) have dedicated all
|
|
|
|
// copyright and related and neighboring rights to this software to the
|
|
|
|
// public domain worldwide. This software is distributed without any
|
|
|
|
// warranty.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the CC0 Public Domain
|
|
|
|
// Dedication along with this software.
|
|
|
|
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|