add attachments to region()

rewrite "circle" attachment to use line intersection
This commit is contained in:
Adrian Mariano
2021-11-13 10:47:51 -05:00
parent f605bafb0d
commit b671a0c37d
3 changed files with 27 additions and 15 deletions

View File

@@ -703,7 +703,7 @@ function arc(N, r, angle, d, cp, points, width, thickness, start, wedge=false, l
module arc(N, r, angle, d, cp, points, width, thickness, start, wedge=false, anchor=CENTER, spin=0)
{
path = arc(N=N, r=r, angle=angle, d=d, cp=cp, points=points, width=width, thickness=thickness, start=start, wedge=wedge);
attachable(anchor,spin, two_d=true, path=path) {
attachable(anchor,spin, two_d=true, path=path, extent=true) {
polygon(path);
children();
}