[FEM] Clipping plane: Fix handling of shapeless document objects
This commit is contained in:
@@ -285,11 +285,12 @@ def getBoundBoxOfAllDocumentShapes(doc):
|
||||
bb = o.FemMesh.BoundBox
|
||||
except Exception:
|
||||
pass
|
||||
if bb.isValid():
|
||||
if not overalboundbox:
|
||||
overalboundbox = bb
|
||||
else:
|
||||
overalboundbox.add(bb)
|
||||
if bb:
|
||||
if bb.isValid():
|
||||
if not overalboundbox:
|
||||
overalboundbox = bb
|
||||
else:
|
||||
overalboundbox.add(bb)
|
||||
return overalboundbox
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user