Skip to content

Commit 9130381

Browse files
author
Grammer, Kyle
committed
Patch for GEOUNED-org#203
1 parent a122030 commit 9130381

File tree

3 files changed

+4
-189
lines changed

3 files changed

+4
-189
lines changed

.gitignore

-185
This file was deleted.

src/geouned/GEOUNED/core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,8 @@ def start(self):
639639
if c.Definition.level == 0 or c.IsEnclosure:
640640
continue
641641
logger.info(f"simplify cell {c.__id__}")
642-
Box = UF.get_box(c)
643-
CT = build_c_table_from_solids(Box, (c.Surfaces, Surfs), option="full")
642+
Box = UF.get_box(c,self.options)
643+
CT = build_c_table_from_solids(Box, (c.Surfaces, Surfs), option="full",options=self.options)
644644
c.Definition.simplify(CT)
645645
c.Definition.clean()
646646
if type(c.Definition.elements) is bool:

src/geouned/GEOUNED/utils/boolean_solids.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def point_inside(solid):
439439
return point
440440

441441
cut_line = 32
442-
cut_box = 2
442+
cutbox = 2
443443

444444
v1 = solid.Vertexes[0].Point
445445
for vi in range(len(solid.Vertexes) - 1, 0, -1):
@@ -478,7 +478,7 @@ def point_inside(solid):
478478
boxes = subbox
479479
n = n + 1
480480

481-
if n == cut_box:
481+
if n == cutbox:
482482
break
483483

484484
return point_from_surface(solid)

0 commit comments

Comments
 (0)