Added support for rotated 2d shapes for engraving selection.

This commit is contained in:
Markus Lampert
2018-06-04 12:06:44 +02:00
committed by wmayer
parent a3d864e59d
commit 4641fafa02
+2 -1
View File
@@ -27,6 +27,7 @@ import FreeCAD
import FreeCADGui
import PathScripts.PathLog as PathLog
import PathScripts.PathUtils as PathUtils
import math
if False:
PathLog.setLevel(PathLog.Level.DEBUG, PathLog.thisModule())
@@ -50,7 +51,7 @@ class ENGRAVEGate:
except:
return False
if shape.BoundBox.ZLength == 0.0 and len(shape.Wires) > 0:
if math.fabs(shape.Volume) < 1e-9 and len(shape.Wires) > 0:
return True
if shape.ShapeType == 'Edge':