- cascaded_union() method will be deprecated in Shapely 1.8 in favor of unary_union; replaced the usage of cascaded_union with unary_union in all the app

This commit is contained in:
Marius Stanciu
2020-10-21 13:55:41 +03:00
committed by Marius
parent 265028de76
commit 66a3e36701
26 changed files with 116 additions and 115 deletions

View File

@@ -374,7 +374,7 @@ class Gerber(Geometry):
geo_f = None
# Polygons are stored here until there is a change in polarity.
# Only then they are combined via cascaded_union and added or
# Only then they are combined via unary_union and added or
# subtracted from solid_geometry. This is ~100 times faster than
# applying a union for every new polygon.
poly_buffer = []
@@ -1680,7 +1680,7 @@ class Gerber(Geometry):
#
# self.do_flashes()
#
# self.solid_geometry = cascaded_union(self.buffered_paths +
# self.solid_geometry = unary_union(self.buffered_paths +
# [poly['polygon'] for poly in self.regions] +
# self.flash_geometry)