Added right_triangle.

This commit is contained in:
Chris Palmer 2019-07-29 19:30:07 +01:00
parent 4ff12b1d8b
commit 645ff21d3d
3 changed files with 4 additions and 0 deletions

View File

@ -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 |

View File

@ -25,6 +25,9 @@ module globals() {
translate([30, 0])
ellipse(15, 7);
translate([50, 0])
right_triangle(10, 20, 0);
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 24 KiB