started on segment mobius strip

This commit is contained in:
Trammell Hudson 2015-01-03 08:47:25 +01:00
parent 58b998f9f8
commit 0e73fe56c5

36
mobius.scad Normal file
View File

@ -0,0 +1,36 @@
module triangle(s)
{
scale(s)
polygon(points=[
[-1/2, -sqrt(3)/4 + sqrt(3)/12],
[ 0, +sqrt(3)/4 + sqrt(3)/12],
[+1/2, -sqrt(3)/4 + sqrt(3)/12],
]);
}
thick=10;
sides=16;
radius=50;
module segment(n)
{
translate([radius-thick/2,0,0])
rotate([90,0,0])
rotate([0,0,n*120/sides])
linear_extrude(
height=radius*3.1415*2/sides,
twist=120/sides,
center=true,
slices=1
)
triangle(thick);
}
for(i=[1:sides])
{
rotate([0,0,i*360/sides]) segment(i);
}
%cylinder(r=radius,height=5);