|
|
@ -16,6 +16,9 @@ from OCC.Core.BRepMesh import BRepMesh_IncrementalMesh |
|
|
|
from OCC.Core.StlAPI import StlAPI_Writer |
|
|
|
from OCC.Core.IFSelect import IFSelect_RetDone |
|
|
|
|
|
|
|
from brep2sdf.config.default_config import get_default_config |
|
|
|
config = get_default_config() |
|
|
|
|
|
|
|
# 配置日志记录 |
|
|
|
def setup_logger(): |
|
|
|
logger = logging.getLogger('furniture_processing') |
|
|
@ -244,7 +247,7 @@ def process(step_file: str, set_name:str) -> bool: |
|
|
|
|
|
|
|
def main(): |
|
|
|
"""主函数:并行处理所有STEP文件""" |
|
|
|
INPUT = '/mnt/disk2/dataset/furniture/step/furniture_dataset_step' |
|
|
|
INPUT = config.data.origin_brep_dir |
|
|
|
if not os.path.exists(INPUT): |
|
|
|
logger.error(f"输入目录不存在: {INPUT}") |
|
|
|
return |
|
|
|