This commit is contained in:
2026-05-06 14:37:36 +08:00
parent aa3b4b93f6
commit 2a25f21ee5
7 changed files with 23 additions and 23 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ from OCC.Core.BRepAlgoAPI import BRepAlgoAPI_Cut, BRepAlgoAPI_Section, BRepAlgoA
from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_MakeFace, BRepBuilderAPI_Transform
from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox, BRepPrimAPI_MakeHalfSpace
from OCC.Core.gp import gp_Pln, gp_Dir, gp_Pnt, gp_Trsf, gp_Ax2
from OCC.Core.TopoDS import TopoDS_Face
from OCC.Core.TopoDS import TopoDS_Face, topods
from OCC.Core.BRep import BRep_Tool
from OCC.Core.BRepMesh import BRepMesh_IncrementalMesh
from OCC.Core.GProp import GProp_GProps
@@ -90,7 +90,7 @@ class BaseMoldGenerator:
explorer = TopExp_Explorer(shape, TopAbs_FACE)
while explorer.More():
face = TopoDS_Face(explorer.Current())
face = topods.Face(explorer.Current())
normal = self._get_face_normal(face)
if normal is not None:
@@ -477,7 +477,7 @@ class BaseMoldGenerator:
face_idx = 0
while explorer.More():
face = TopoDS_Face(explorer.Current())
face = topods.Face(explorer.Current())
face_idx += 1
try: