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

Function test_point_constraint

tests/test_assembly.py:2305–2315  ·  view source on GitHub ↗
(simple_assy2)

Source from the content-addressed store, hash-verified

2303
2304
2305def test_point_constraint(simple_assy2):
2306
2307 assy = simple_assy2
2308
2309 assy.constrain("b1", "b2", "Point", 1)
2310
2311 assy.solve()
2312
2313 t2 = assy.children[1].loc.wrapped.Transformation().TranslationPart()
2314
2315 assert t2.Modulus() == pytest.approx(1)
2316
2317
2318@pytest.fixture

Callers

nothing calls this directly

Calls 2

constrainMethod · 0.45
solveMethod · 0.45

Tested by

no test coverage detected