feat: integrate SimpleCADAPI 2.0.2 CAD workflows

This commit is contained in:
Jerry
2026-08-03 11:17:05 +08:00
parent b5738e9109
commit c3a0f269b7
481 changed files with 110229 additions and 12826 deletions
@@ -81,7 +81,13 @@ class DesignIRPipelineTests(unittest.TestCase):
)
self.assertEqual("simplecadapi", result["backend"])
self.assertGreater(result["facts"]["volume_mm3"], 30_000)
self.assertTrue(Path(result["model_json"]).is_file())
model_json_path = Path(result["model_json"])
self.assertTrue(model_json_path.is_file())
model_json = json.loads(model_json_path.read_text(encoding="utf-8"))
serialized = json.dumps(model_json)
self.assertIn("feature.base.flange", serialized)
self.assertIn("feature.central.bore", serialized)
self.assertTrue(model_json.get("leaf_ids"))
def test_arbitrary_axis_geometric_center_preserves_pose(self) -> None:
payload = self.payload()