diff --git a/readme.md b/readme.md index 15e6bbd..126d663 100644 --- a/readme.md +++ b/readme.md @@ -4511,6 +4511,7 @@ Global constants, functions and modules. This file is used directly or indirectl | ```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° flip around the Y axis | +| ```right_triangle(width, height, h, center = true)``` | A right angled triangle with the 90° corner at the origin. 3D when ```h``` is nonzero, otherwise 2D | | ```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 | diff --git a/tests/global.scad b/tests/global.scad index e987814..b3ba956 100644 --- a/tests/global.scad +++ b/tests/global.scad @@ -25,6 +25,9 @@ module globals() { translate([30, 0]) ellipse(15, 7); + + translate([50, 0]) + right_triangle(10, 20, 0); } } diff --git a/tests/png/global.png b/tests/png/global.png index 3dd6641..60d45dd 100644 Binary files a/tests/png/global.png and b/tests/png/global.png differ