diff --git a/src/geouned/GEOUNED/conversion/cell_definition.py b/src/geouned/GEOUNED/conversion/cell_definition.py index e0ab524d..91ed386e 100644 --- a/src/geouned/GEOUNED/conversion/cell_definition.py +++ b/src/geouned/GEOUNED/conversion/cell_definition.py @@ -849,7 +849,7 @@ def no_overlapping_cell(metaList, surfaces, options): t_def, simplify = t_def_and_simplify if True in simplify: logger.info(f"reduce cell {m.__id__}") - box = UF.get_box(m) + box = UF.get_box(m, options.enlargeBox) # evaluate only diagonal elements of the Constraint Table (fastest) and remove surface not # crossing in the solid boundBox diff --git a/src/geouned/GEOUNED/utils/functions.py b/src/geouned/GEOUNED/utils/functions.py index 14cbb0d0..b5d251b0 100644 --- a/src/geouned/GEOUNED/utils/functions.py +++ b/src/geouned/GEOUNED/utils/functions.py @@ -23,9 +23,9 @@ from . import basic_functions_part2 as BF -def get_box(comp, options): +def get_box(comp, enlargeBox): bb = FreeCAD.BoundBox(comp.BoundBox) - bb.enlarge(options.enlargeBox) + bb.enlarge(enlargeBox) xMin, yMin, zMin = bb.XMin, bb.YMin, bb.ZMin xLength, yLength, zLength = bb.XLength, bb.YLength, bb.ZLength