MCPcopy
hub / github.com/CadQuery/cadquery / solve_result_check

Function solve_result_check

tests/test_assembly.py:600–605  ·  view source on GitHub ↗
(solve_result: dict)

Source from the content-addressed store, hash-verified

598
599
600def solve_result_check(solve_result: dict) -> bool:
601 checks = [
602 solve_result["success"] == True,
603 solve_result["iterations"]["inf_pr"][-1] < 1e-9,
604 ]
605 return all(checks)
606
607
608def test_color():

Callers 5

test_constrainFunction · 0.85
test_PointInPlane_paramFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected