From 5eb4cf289a607044dfd6e5a8699b28559700e8e3 Mon Sep 17 00:00:00 2001 From: Elmom Date: Sat, 14 Jan 2012 16:15:34 +0200 Subject: [PATCH] Fix spin so that it properly uses the angle parameter --- utilities.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utilities.scad b/utilities.scad index 6d6468d..c35326a 100644 --- a/utilities.scad +++ b/utilities.scad @@ -26,8 +26,8 @@ function angleBetweenTwoPoints(a, b) = angle(normalized(b-a)); // TODO check that the axis parameter works as intended // Duplicate everything $no of times around an $axis, for $angle/360 rounds module spin(no, angle=360, axis=[0, 0, 1]){ - for (i = [0:no]){ - rotate(normalized(axis)*angle*i/no) union(){ + for (i = [1:no]){ + rotate(normalized(axis)*angle*no/i) union(){ for (i = [0 : $children-1]) child(i); } }