Fixed 2D attachments issue That rotated shapes vertically.

This commit is contained in:
Revar Desmera
2020-01-15 14:18:11 -08:00
parent 62e8e517fd
commit 9d84c33af6
4 changed files with 10 additions and 6 deletions

View File

@@ -781,8 +781,12 @@ function trapezoid(h, w1, w2, anchor=CENTER, spin=0) =
module trapezoid(h, w1, w2, anchor=CENTER, spin=0)
polygon(trapezoid(h=h, w1=w1, w2=w2, anchor=anchor, spin=spin));
module trapezoid(h, w1, w2, anchor=CENTER, spin=0) {
orient_and_anchor([w1,h,0], size2=[w2,h], UP, anchor, spin=spin, two_d=true, chain=true) {
polygon(trapezoid(h=h, w1=w1, w2=w2));
children();
}
}
// Function&Module: teardrop2d()