diff --git a/readme.md b/readme.md index 2e7e3b2..b05caa9 100644 --- a/readme.md +++ b/readme.md @@ -4118,10 +4118,10 @@ Global constants, functions and modules. This file is used directly or indirectl | ```circle4n(r, d = undef)``` | Circle with multiple of 4 vertices | | ```ellipse(xr, yr)``` | Draw an ellipse | | ```extrude_if(h, center = true)``` | Extrudes 2D object to 3D when ```h``` is nonzero, otherwise leaves it 2D | -| ```hflip()``` | Invert children by doing a 180 glip around the Y axis | +| ```hflip()``` | Invert children by doing a 180° flip around the Y axis | | ```semi_circle(r, d = undef)``` | A semi circle in the positive Y domain | | ```translate_z(z)``` | Shortcut for Z only translations | -| ```vflip()``` | Invert children by doing a 180 flip around the X axis | +| ```vflip()``` | Invert children by doing a 180° flip around the X axis | ![global](tests/png/global.png) diff --git a/utils/core/global.scad b/utils/core/global.scad index b601cad..2783c0c 100644 --- a/utils/core/global.scad +++ b/utils/core/global.scad @@ -31,8 +31,8 @@ function r2sides(r) = $fn ? $fn : ceil(max(min(360/ $fa, r * 2 * PI / $fs), 5)); function r2sides4n(r) = floor((r2sides(r) + 3) / 4) * 4; //! Round up the number of sides to a multiple of 4 to ensure points land on all axes module translate_z(z) translate([0, 0, z]) children(); //! Shortcut for Z only translations -module vflip() rotate([180, 0, 0]) children(); //! Invert children by doing a 180 flip around the X axis -module hflip() rotate([0, 180, 0]) children(); //! Invert children by doing a 180 flip around the Y axis +module vflip() rotate([180, 0, 0]) children(); //! Invert children by doing a 180° flip around the X axis +module hflip() rotate([0, 180, 0]) children(); //! Invert children by doing a 180° flip around the Y axis module ellipse(xr, yr) scale([1, yr / xr]) circle4n(xr); //! Draw an ellipse module extrude_if(h, center = true) //! Extrudes 2D object to 3D when ```h``` is nonzero, otherwise leaves it 2D