feat: 完善一级关系编辑 UI 与视图体验
This commit is contained in:
@@ -146,6 +146,10 @@ def _run_diameter_case(target: float, tolerance: float) -> None:
|
||||
raise SystemExit(
|
||||
f"diameter changed boss height: before={current_height:g}, after={height:g}, error={height_error:g}"
|
||||
)
|
||||
if "verified_face=" not in result:
|
||||
raise SystemExit(f"diameter result did not report verified target Face: {result}")
|
||||
if "first_level_topology_matched=True" not in result:
|
||||
raise SystemExit(f"diameter result did not verify first-level topology: {result}")
|
||||
print("mode=diameter")
|
||||
print(f"source_face={face_id}")
|
||||
print(f"strategy={plan.get('resize_strategy')}")
|
||||
@@ -186,6 +190,8 @@ def _run_axis_center_case(offset: float, tolerance: float) -> None:
|
||||
raise SystemExit(
|
||||
f"axis_center changed boss height: before={current_height:g}, after={height:g}, error={height_error:g}"
|
||||
)
|
||||
if "first_level_topology_matched=True" not in result:
|
||||
raise SystemExit(f"axis_center result did not verify first-level topology: {result}")
|
||||
print("mode=axis_center")
|
||||
print(f"source_face={face_id}")
|
||||
print(f"strategy={plan.get('resize_strategy')}")
|
||||
@@ -232,6 +238,8 @@ def _run_circle_edge_axis_center_case(offset: float, tolerance: float) -> None:
|
||||
raise SystemExit(
|
||||
f"circle_edge_axis_center changed boss height: before={current_height:g}, after={height:g}, error={height_error:g}"
|
||||
)
|
||||
if "first_level_topology_matched=True" not in result:
|
||||
raise SystemExit(f"circle_edge_axis_center result did not verify first-level topology: {result}")
|
||||
print("mode=circle_edge_axis_center")
|
||||
print(f"source_edge={edge_id}")
|
||||
print(f"source_face={face_id}")
|
||||
@@ -264,6 +272,8 @@ def _run_height_case(target: float, tolerance: float) -> None:
|
||||
raise SystemExit(f"height changed solid count: before={before.solids}, after={after.solids}")
|
||||
if error > tolerance:
|
||||
raise SystemExit(f"height verification failed: target={target:g}, value={height:g}, error={error:g}")
|
||||
if "first_level_topology_matched=True" not in result:
|
||||
raise SystemExit(f"height result did not verify first-level topology: {result}")
|
||||
print("mode=height")
|
||||
print(f"source_face={face_id}")
|
||||
print(f"strategy={plan.get('resize_strategy')}")
|
||||
|
||||
Reference in New Issue
Block a user