Skip to content

Commit a8e1ed0

Browse files
committed
use shapefix instead of builder
1 parent 0bdaf25 commit a8e1ed0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/compas_occ/brep/brep.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,13 @@ def solids(self) -> list["OCCBrep"]:
344344
self._solids = solids
345345
return self._solids
346346

347+
@property
348+
def naked_edges(self) -> list[OCCBrepEdge]:
349+
naked_edges = []
350+
# see ShapeAnalysis_FreeBounds.GetOpenWires()
351+
# see ShapeAnalysis_FreeBounds.GetClosedWires()
352+
return naked_edges
353+
347354
# ==============================================================================
348355
# Geometric Properties
349356
# ==============================================================================
@@ -1804,7 +1811,9 @@ def make_solid(self):
18041811
18051812
"""
18061813
if self.type == TopAbs.TopAbs_SHELL:
1807-
self.occ_shape = BRepBuilderAPI.BRepBuilderAPI_MakeSolid(self.occ_shape).Shape() # type: ignore
1814+
# self.occ_shape = BRepBuilderAPI.BRepBuilderAPI_MakeSolid(self.occ_shape).Shape() # type: ignore
1815+
fixer = ShapeFix.ShapeFix_Solid()
1816+
self.occ_shape = fixer.SolidFromShell(self.occ_shape) # type: ignore
18081817

18091818
def overlap(
18101819
self,

0 commit comments

Comments
 (0)