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
+2 -2
View File
@@ -53,7 +53,7 @@ class UndercutDetector:
try:
from OCC.Core.TopExp import TopExp_Explorer
from OCC.Core.TopAbs import TopAbs_FACE
from OCC.Core.TopoDS import TopoDS_Face
from OCC.Core.TopoDS import TopoDS_Face, topods
from OCC.Core.BRepAdaptor import BRepAdaptor_Surface
from OCC.Core.GProp import GProp_GProps
from OCC.Core.BRepGProp import brepgprop
@@ -88,7 +88,7 @@ class UndercutDetector:
face_idx = 0
while explorer.More():
face = TopoDS_Face(explorer.Current())
face = topods.Face(explorer.Current())
face_idx += 1
try: