FIX: Make Python scripts more robust (Closes FFBUG0000006)
[freefoam.git] / doc / UserGuide / mesh / assets / overlappingPatches.asy
blobead5347dcd8ade41bc8a231e44fa8c98d3fca96f
1 settings.render = -2;
2 size(9cm);
4 path patch1 = (0,0)--E+0.3N--0.9E+N--0.3W+0.8N--cycle;
5 path patch2 = 0.5E+0.2N--0.9E+0.4N--0.5E+1.2N--N--cycle;
6 filldraw(patch1, lightgray, black);
7 filldraw(patch2, lightgray, black);
8 pair[] cuts = intersectionpoints(patch1, patch2);
9 filldraw(0.5E+0.2N--0.9E+0.4N--cuts[0]--cuts[1]--cycle, gray, black);
11 label("patch 1", 0.3NE);
12 label("patch 2", N+0.3E);
14 real s = 0.06;
15 filldraw(shift(0.1S)*scale(s)*unitsquare, lightgray);
16 label("region of internal connection faces", 0.1S+s*E, NE);
17 filldraw(shift(0.2S)*scale(s)*unitsquare, gray);
18 label("region of external bounary faces", 0.2S+s*E, NE);