feat(cadfs): expand reconstruction capability coverage

This commit is contained in:
2026-09-09 10:11:46 +08:00
parent 5bd1011335
commit 2f89d7930c
21 changed files with 8373 additions and 418 deletions
+9 -1
View File
@@ -24,7 +24,15 @@ def _assess(report: dict[str, Any], limits: dict[str, float]) -> dict[str, Any]:
def compare_steps(gold_step: Path, rebuilt_step: Path, *, surface_tessellation_mm: float = 0.05) -> dict[str, Any]:
from onshape_to_cdsl.compare import strict_compare
# ``onshape_to_cdsl`` is a sibling src-layout package. CADFS commands
# intentionally require only ``PYTHONPATH=backend:.`` so they must work
# from a source checkout as well as an installed package.
try:
from onshape_to_cdsl.compare import strict_compare
except ModuleNotFoundError as error:
if error.name != "onshape_to_cdsl.compare":
raise
from onshape_to_cdsl.src.onshape_to_cdsl.compare import strict_compare
raw = strict_compare(
gold_step,
rebuilt_step,