导出step文件合并为整体,方便后续修改

This commit is contained in:
2026-05-27 14:57:03 +08:00
parent 26613676f8
commit 9882d3becc
11 changed files with 129 additions and 111 deletions
+5 -4
View File
@@ -21,6 +21,7 @@
from typing import Dict, List, Any, Optional, Tuple
import math
import numpy as np
from OCC.Core.TopoDS import TopoDS_Shape, TopoDS_Face
from utils.logger import get_logger
logger = get_logger(__name__)
@@ -29,8 +30,8 @@ logger = get_logger(__name__)
class UndercutDetector:
"""倒扣区域检测器"""
def detect_undercuts(self, shape: Any, parting_direction: List[float],
parting_surface: Any = None) -> Dict[str, Any]:
def detect_undercuts(self, shape: TopoDS_Shape, parting_direction: List[float],
parting_surface: Optional[TopoDS_Face] = None) -> Dict[str, Any]:
"""
检测产品中的倒扣区域
@@ -443,8 +444,8 @@ class SideActionDesigner:
self.slider_designer = SliderMechanismDesigner()
self.lifter_designer = LifterMechanismDesigner()
def analyze_and_design(self, shape: Any, parting_direction: List[float],
mold_size: Dict, parting_surface: Any = None) -> Dict[str, Any]:
def analyze_and_design(self, shape: TopoDS_Shape, parting_direction: List[float],
mold_size: Dict, parting_surface: Optional[TopoDS_Face] = None) -> Dict[str, Any]:
"""
综合分析倒扣并设计侧向分型机构