fairyfly-core 0.2.7__py3-none-any.whl → 0.2.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fairyfly/shape.py +5 -2
- {fairyfly_core-0.2.7.dist-info → fairyfly_core-0.2.9.dist-info}/METADATA +1 -1
- {fairyfly_core-0.2.7.dist-info → fairyfly_core-0.2.9.dist-info}/RECORD +7 -7
- {fairyfly_core-0.2.7.dist-info → fairyfly_core-0.2.9.dist-info}/WHEEL +1 -1
- {fairyfly_core-0.2.7.dist-info → fairyfly_core-0.2.9.dist-info}/entry_points.txt +0 -0
- {fairyfly_core-0.2.7.dist-info → fairyfly_core-0.2.9.dist-info}/licenses/LICENSE +0 -0
- {fairyfly_core-0.2.7.dist-info → fairyfly_core-0.2.9.dist-info}/top_level.txt +0 -0
fairyfly/shape.py
CHANGED
|
@@ -283,7 +283,7 @@ class Shape(_Base):
|
|
|
283
283
|
break
|
|
284
284
|
if insert_i is not None:
|
|
285
285
|
new_bound = list(self.geometry.boundary)
|
|
286
|
-
new_bound.insert(insert_i, point)
|
|
286
|
+
new_bound.insert(insert_i + 1, point)
|
|
287
287
|
self._geometry = Face3D(new_bound, self._geometry.plane, self._geometry.holes)
|
|
288
288
|
return None
|
|
289
289
|
# evaluate the holes if they exist
|
|
@@ -292,7 +292,7 @@ class Shape(_Base):
|
|
|
292
292
|
for i, seg in enumerate(h_segs):
|
|
293
293
|
if seg.distance_to_point(point) <= tolerance:
|
|
294
294
|
new_holes = list(self.geometry.holes)
|
|
295
|
-
new_holes[hi].insert(i, point)
|
|
295
|
+
new_holes[hi].insert(i + 1, point)
|
|
296
296
|
self._geometry = Face3D(self._geometry.boundary,
|
|
297
297
|
self._geometry.plane, new_holes)
|
|
298
298
|
return None
|
|
@@ -469,6 +469,9 @@ class Shape(_Base):
|
|
|
469
469
|
pts_2d = tuple(master_plane.xyz_to_xy(pt) for pt in hole)
|
|
470
470
|
polygon_2ds.append(Polygon2D(pts_2d))
|
|
471
471
|
|
|
472
|
+
# snap all polygons together
|
|
473
|
+
polygon_2ds = Polygon2D.snap_polygons(polygon_2ds, tol)
|
|
474
|
+
|
|
472
475
|
# intersect the Room2D polygons within the 2D space
|
|
473
476
|
int_poly = Polygon2D.intersect_polygon_segments(polygon_2ds, tol)
|
|
474
477
|
|
|
@@ -13,7 +13,7 @@ fairyfly/logutil.py,sha256=Urxl0U14-qffIt6NiGLT6pV-796oAGUvnnf2ypj1j9Q,2564
|
|
|
13
13
|
fairyfly/model.py,sha256=R3BXbVgICTM-5K0O1HAnyODqDYrOXXQjZpkT73PGMos,46274
|
|
14
14
|
fairyfly/properties.py,sha256=uGBA8YY0Sr_dp3NUCAx-XvXhctoBBwDlqsCiyNU_TTo,21402
|
|
15
15
|
fairyfly/search.py,sha256=-DapYpzfX3nwZx1eF2elcmYG7vxitsvAiv_e3TGlTJ0,4806
|
|
16
|
-
fairyfly/shape.py,sha256=
|
|
16
|
+
fairyfly/shape.py,sha256=Rj9zzmml-PffXmJ-V_J3-z_UyuWmsBKjTo44Fq7i8gw,22416
|
|
17
17
|
fairyfly/typing.py,sha256=1djGuUI0Ui-96EjBKPKw6rrMF7dPUq97q24Pg6NNfTM,7219
|
|
18
18
|
fairyfly/units.py,sha256=wM3TEAF_ir8VWHFJYSbAKYrLU7VHzBGTtRTw6Tbh4Aw,3216
|
|
19
19
|
fairyfly/cli/__init__.py,sha256=1qvLWWmJtYVDdTTQHVtoCNTMKyeAq_VWZ4tp-ap-Ajk,3187
|
|
@@ -22,9 +22,9 @@ fairyfly/writer/__init__.py,sha256=D4FdE2LUVCMvfud3qL2UquH1uCz3EGlKOEMgstMjtXc,2
|
|
|
22
22
|
fairyfly/writer/boundary.py,sha256=skpfcFyxWLvjTSStbCh5f4wehSHeI-eKMgoeSCzvO7Q,190
|
|
23
23
|
fairyfly/writer/model.py,sha256=6Y15NVGCjmYcBdimxyQWnE8AAhQAJi6A7QfMi4P49M4,181
|
|
24
24
|
fairyfly/writer/shape.py,sha256=pMlLbk3WkrNPbNvowDQ_JFgNkhHNOlqL52TMZKB7zKo,181
|
|
25
|
-
fairyfly_core-0.2.
|
|
26
|
-
fairyfly_core-0.2.
|
|
27
|
-
fairyfly_core-0.2.
|
|
28
|
-
fairyfly_core-0.2.
|
|
29
|
-
fairyfly_core-0.2.
|
|
30
|
-
fairyfly_core-0.2.
|
|
25
|
+
fairyfly_core-0.2.9.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
|
26
|
+
fairyfly_core-0.2.9.dist-info/METADATA,sha256=k8fF1aSRP4-MFBeu833_Ovv74PEpNciXvwjxYuf13R0,3291
|
|
27
|
+
fairyfly_core-0.2.9.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
28
|
+
fairyfly_core-0.2.9.dist-info/entry_points.txt,sha256=KM3hAPV0ivux3CUx1-pDT0BL1WSUFt2jmT4i_MFbdzc,47
|
|
29
|
+
fairyfly_core-0.2.9.dist-info/top_level.txt,sha256=8ZUsvZOSB3g5enmv1R0vxJilNeW8Uft5KrTL0rUNj7k,9
|
|
30
|
+
fairyfly_core-0.2.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|