feat: 完善一级关系参数化建模与参数导出
This commit is contained in:
@@ -61,7 +61,7 @@ from OCC.Extend.TopologyUtils import TopologyExplorer, discretize_edge
|
||||
|
||||
from .constants import CURVE_TYPES, SNAPSHOT_FACE_LOGICAL_IDS_KEY, SURFACE_TYPES
|
||||
from .geometry_utils import * # noqa: F403
|
||||
from .step_io import _prepare_shape_for_step_export, _write_step
|
||||
from .step_io import _prepare_shape_for_step_export, _write_brep, _write_step
|
||||
|
||||
|
||||
class ExportMixin:
|
||||
@@ -71,6 +71,9 @@ class ExportMixin:
|
||||
)
|
||||
_write_step(export_shape, Path(filename))
|
||||
|
||||
def export_internal_brep(self, filename: str | Path) -> None:
|
||||
_write_brep(self.shape, Path(filename))
|
||||
|
||||
def export_quality_info(self, scope: str, target_id: int | None = None) -> dict[str, object]:
|
||||
if scope == "all":
|
||||
return _shape_quality_info("当前完整模型", self.shape, expect_solid=False)
|
||||
|
||||
Reference in New Issue
Block a user