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

Function test_spline_params

tests/test_free_functions.py:499–504  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

497
498
499def test_spline_params():
500
501 s1 = spline([(0, 0), (0, 1), (1, 1)], params=[0, 1, 2])
502 p1 = s1.positionAt(1, mode="parameter")
503
504 assert p1.toTuple() == approx((0, 1, 0))
505
506
507def test_text():

Callers

nothing calls this directly

Calls 3

splineFunction · 0.85
positionAtMethod · 0.45
toTupleMethod · 0.45

Tested by

no test coverage detected