- fixed a possible problem in generating bounds value for a solid_geometry that have empty geo elements
This commit is contained in:
parent
24d639e1de
commit
99e274c82d
|
@ -7,6 +7,10 @@ CHANGELOG for FlatCAM beta
|
||||||
|
|
||||||
=================================================
|
=================================================
|
||||||
|
|
||||||
|
9.06.2020
|
||||||
|
|
||||||
|
- fixed a possible problem in generating bounds value for a solid_geometry that have empty geo elements
|
||||||
|
|
||||||
8.06.2020
|
8.06.2020
|
||||||
|
|
||||||
- minor changes in the way that the tools are installed and connected
|
- minor changes in the way that the tools are installed and connected
|
||||||
|
|
|
@ -652,6 +652,12 @@ class Geometry(object):
|
||||||
gmaxx = max(gmaxx, maxx_)
|
gmaxx = max(gmaxx, maxx_)
|
||||||
gmaxy = max(gmaxy, maxy_)
|
gmaxy = max(gmaxy, maxy_)
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
|
if k.is_empty:
|
||||||
|
continue
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
minx_, miny_, maxx_, maxy_ = bounds_rec(k)
|
minx_, miny_, maxx_, maxy_ = bounds_rec(k)
|
||||||
gminx = min(gminx, minx_)
|
gminx = min(gminx, minx_)
|
||||||
gminy = min(gminy, miny_)
|
gminy = min(gminy, miny_)
|
||||||
|
|
Loading…
Reference in New Issue