1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/examples/mobius_twins.scad

35 lines
687 B
OpenSCAD
Raw Normal View History

2021-01-18 16:44:04 +08:00
use <shape_liquid_splitting.scad>;
2020-06-23 10:24:15 +08:00
use <ring_extrude.scad>;
$fn = 48;
r = 100;
module mobius_twins() {
a_step = 20;
half_a_step = 10;
sr = 0.14 * r;
half_r = r / 2;
module mobius() {
difference() {
rotate(-a_step)
ring_extrude(
2021-01-18 16:44:04 +08:00
shape_liquid_splitting(5, half_r, 35), radius = r, twist = 180
2020-06-23 10:24:15 +08:00
);
union() {
for(angle = [0: a_step: 360 - a_step]) {
rotate([0, 0, angle])
translate([r, 0, 0])
sphere(sr);
}
}
}
}
mobius();
rotate(90) mobius();
}
mobius_twins();