diff --git a/regular_shapes.scad b/regular_shapes.scad index 54d61fd..5562850 100644 --- a/regular_shapes.scad +++ b/regular_shapes.scad @@ -27,7 +27,15 @@ module triangle(radius) polygon(points=[[-a,-o],[0,radius],[a,-o]],paths=[[0,1,2]]); } -module reg_polygon(sides,radius) +module reg_polygon(sides, radius) { + echo(" + DEPRECATED: function 'reg_polygon' is now deprecated + please use 'regular_polygon' instead"); + + regular_polygon(sides, radius); +} + +module regular_polygon(sides, radius) { function dia(r) = sqrt(pow(r*2,2)/2); //sqrt((r*2^2)/2) if only we had an exponention op if(sides<2) square([radius,0]);