feat: 增强一级关系识别与保持关系策略

This commit is contained in:
2026-08-10 14:56:50 +08:00
parent 12250603dd
commit 83c44265ba
24 changed files with 3460 additions and 241 deletions
+15 -2
View File
@@ -54,6 +54,7 @@ EXPECTED_EDGE_ISOLATED_OPERATIONS = {
"move_circular_edge_axis_center",
"resize_ellipse_edge_axis_radius",
"resize_existing_fillet",
"resize_existing_chamfer",
"fillet_edge",
"chamfer_edge",
"chamfer_edge_asymmetric",
@@ -122,8 +123,6 @@ def _assert_same(label: str, actual: set[str], expected: set[str]) -> None:
PROPERTY_FACE_ACTION_TO_ISOLATED_OPERATION = {
"push_pull_face": "push_pull_face",
"move_selected_face_plane_position_local": "move_face_plane_offset_local",
"resize_face_area_local": "resize_face_area_local",
"resize_face_area": "resize_face_area",
"resize_face_width_local": "resize_face_size_local",
"resize_face_height_local": "resize_face_size_local",
"resize_face_width_owning_scale": "resize_face_size_owning_scale",
@@ -139,6 +138,7 @@ PROPERTY_FACE_ACTION_TO_ISOLATED_OPERATION = {
"resize_sphere_radius": "resize_sphere_radius",
"resize_torus_major_radius": "resize_torus_radius",
"resize_torus_minor_radius": "resize_torus_radius",
"resize_existing_chamfer": "resize_existing_chamfer",
}
@@ -277,6 +277,19 @@ def _face_property_actions_from_specs() -> set[str]:
(shell_info, {"shell_thickness_estimate"}),
(generic_cylinder_info, {"cylinder_height"}),
(boss_info, {"boss_height"}),
(
{
**plane_info,
"feature_guess": "chamfer candidate",
"feature_type": "已有倒角平面候选",
"existing_chamfer_status": "candidate",
"existing_chamfer_distance_estimate": 1.5,
"existing_chamfer_cross_edge_length_estimate": 2.12132,
"feature_existing_chamfer_support_face_ids": (0, 5),
"feature_existing_chamfer_long_edge_ids": (8,),
},
{"existing_chamfer_distance_estimate"},
),
(
{
"surface": "cone",