Added hflip().

This commit is contained in:
Chris Palmer 2019-06-14 21:38:12 +01:00
parent bf4f64e7bc
commit 4a55e8eb6c
2 changed files with 2 additions and 0 deletions

View File

@ -4118,6 +4118,7 @@ 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 |
| ```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 |

View File

@ -32,6 +32,7 @@ function r2sides4n(r) = floor((r2sides(r) + 3) / 4) * 4;
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 glip 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