FEM: clipping plane, fix bound box calculation for obj with a property called Shape which is not a occt shape

This commit is contained in:
Bernd Hahnebach
2018-08-07 22:34:50 +02:00
committed by wmayer
parent 436d04fe3e
commit 3414c042b6

View File

@@ -106,7 +106,7 @@ def isDerivedFrom(obj, t):
def getBoundBoxOfAllDocumentShapes(doc):
overalboundbox = None
for o in doc.Objects:
if hasattr(o, 'Shape'):
if hasattr(o, 'Shape') and hasattr(o.Shape, 'BoundBox'): # netgen mesh obj has an attribut Shape which is a Document obj, which has no BB
try:
bb = o.Shape.BoundBox
except: