From 8583f5472d46ba231887ff02e8e267111cafd746 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Mon, 29 Jul 2019 20:43:03 +0100 Subject: [PATCH] Would help to include the code! --- utils/core/global.scad | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/core/global.scad b/utils/core/global.scad index 13e3a39..7b58412 100644 --- a/utils/core/global.scad +++ b/utils/core/global.scad @@ -63,6 +63,10 @@ module semi_circle(r, d = undef) //! A semi circle in the pos square([2 * sq, sq]); } +module 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 + extrude_if(h, center = center) + polygon(points = [[0,0], [width, 0], [0, height]]); + include include include