diff --git a/shapes.scad b/shapes.scad index 0a984b9..31e35b1 100644 --- a/shapes.scad +++ b/shapes.scad @@ -1213,11 +1213,11 @@ module spheroid(r, d, circum=false, style="aligned", anchor=CENTER, spin=0, orie if (style=="orig") { merids = [ for (i=[0:1:vsides-1]) 90-(i+0.5)*180/vsides ]; path = [ - let(a = merids[0]) [0, r*sin(a)], - for (a=merids) r * [cos(a), sin(a)], - let(a = select(merids,-1)) [0, r*sin(a)] + let(a = merids[0]) [0, sin(a)], + for (a=merids) [cos(a), sin(a)], + let(a = select(merids,-1)) [0, sin(a)] ]; - rotate(180) rotate_extrude(convexity=2,$fn=sides) polygon(path); + scale(r) rotate(180) rotate_extrude(convexity=2,$fn=sides) polygon(path); } else { vnf = spheroid(r=r, circum=circum, style=style); vnf_polyhedron(vnf, convexity=2); diff --git a/version.scad b/version.scad index 9935ce7..c4a8879 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,490]; +BOSL_VERSION = [2,0,491]; // Section: BOSL Library Version Functions