feat: 完善 STEP/B-Rep 一级关系参数化编辑

This commit is contained in:
2026-08-07 18:08:32 +08:00
parent eef9efcc1e
commit 12250603dd
26 changed files with 4254 additions and 1270 deletions
+4 -1
View File
@@ -129,7 +129,10 @@ def main() -> int:
model.resize_face_area_local(face_id, 144.0)
for candidate_id, area, _width, _height, _center in _plane_metrics(model):
if abs(area - 144.0) <= 1e-5:
_assert_spec_readback(model, candidate_id, "area", 144.0)
info = model.face_info(candidate_id)
_assert_close("area diagnostic value", info.get("area"), 144.0)
if any(spec.get("key") == "area" for spec in _specs(candidate_id, info)):
raise SystemExit("area should stay a diagnostic result, not an editable property spec")
break
else:
raise SystemExit("no plane Face near area 144 after local area resize")