From 7cdfabc80dfdd445455ef715983a87113142e452 Mon Sep 17 00:00:00 2001 From: Trammell Hudson Date: Sat, 3 Jan 2015 09:58:00 +0100 Subject: [PATCH] almost there; slicing is a bit off --- mobius.scad | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/mobius.scad b/mobius.scad index ba6022a..37c812a 100644 --- a/mobius.scad +++ b/mobius.scad @@ -15,7 +15,7 @@ radius=50; module segment(n) { - translate([radius-thick/2,0,0]) + translate([radius-thick,0,0]) rotate([90,0,0]) rotate([0,0,n*120/sides]) linear_extrude( @@ -27,10 +27,22 @@ module segment(n) triangle(thick); } -for(i=[1:sides]) +module slice() { - rotate([0,0,i*360/sides]) segment(i); + rotate([0,0,-360/sides/2]) translate([50,-5,0]) cube([100,10,20], center=true); + rotate([0,0,+360/sides/2]) translate([50,+5,0]) cube([100,10,20], center=true); } -%cylinder(r=radius,height=5); +//for(i=[1:sides]) +for(i=[1:sides]) +{ + rotate([0,0,i*360/sides]) render() difference() + { + segment(i); + slice(); + } +} + + +//%cylinder(r=radius,height=5);