Skip to content

Commit

Permalink
Patch for GEOUNED-org#203
Browse files Browse the repository at this point in the history
  • Loading branch information
Grammer, Kyle committed Jun 3, 2024
1 parent a122030 commit 353f6e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/geouned/GEOUNED/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,8 @@ def start(self):
if c.Definition.level == 0 or c.IsEnclosure:
continue
logger.info(f"simplify cell {c.__id__}")
Box = UF.get_box(c)
CT = build_c_table_from_solids(Box, (c.Surfaces, Surfs), option="full")
Box = UF.get_box(c,self.options)
CT = build_c_table_from_solids(Box, (c.Surfaces, Surfs), option="full",options=self.options)
c.Definition.simplify(CT)
c.Definition.clean()
if type(c.Definition.elements) is bool:
Expand Down
4 changes: 2 additions & 2 deletions src/geouned/GEOUNED/utils/boolean_solids.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def point_inside(solid):
return point

cut_line = 32
cut_box = 2
cutbox = 2

v1 = solid.Vertexes[0].Point
for vi in range(len(solid.Vertexes) - 1, 0, -1):
Expand Down Expand Up @@ -478,7 +478,7 @@ def point_inside(solid):
boxes = subbox
n = n + 1

if n == cut_box:
if n == cutbox:
break

return point_from_surface(solid)
Expand Down

0 comments on commit 353f6e7

Please sign in to comment.