Skip to content

Commit a3fd78f

Browse files
KBGrammerAlvaroCubiGrammer, Kyle
authored
Simplify error (#211)
* Patch for #203 * Responding to comments on #206 * Update core.py Add missing space to call to UF.get_box() * Replace all get_box calls to have options.enlargeBox, change get_box to refer only to enlargeBox instead of options.enlargeBox --------- Co-authored-by: AlvaroCubi <[email protected]> Co-authored-by: Grammer, Kyle <[email protected]>
1 parent 599fe67 commit a3fd78f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/geouned/GEOUNED/conversion/cell_definition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ def no_overlapping_cell(metaList, surfaces, options):
849849
t_def, simplify = t_def_and_simplify
850850
if True in simplify:
851851
logger.info(f"reduce cell {m.__id__}")
852-
box = UF.get_box(m)
852+
box = UF.get_box(m, options.enlargeBox)
853853

854854
# evaluate only diagonal elements of the Constraint Table (fastest) and remove surface not
855855
# crossing in the solid boundBox

src/geouned/GEOUNED/utils/functions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
from . import basic_functions_part2 as BF
2424

2525

26-
def get_box(comp, options):
26+
def get_box(comp, enlargeBox):
2727
bb = FreeCAD.BoundBox(comp.BoundBox)
28-
bb.enlarge(options.enlargeBox)
28+
bb.enlarge(enlargeBox)
2929
xMin, yMin, zMin = bb.XMin, bb.YMin, bb.ZMin
3030
xLength, yLength, zLength = bb.XLength, bb.YLength, bb.ZLength
3131

0 commit comments

Comments
 (0)