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

Function test_curve_position

tests/test_nurbs.py:401–406  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

399
400@mark.parametrize("e", EDGES)
401def test_curve_position(e):
402
403 crv = Curve.fromEdge(e)
404
405 for u in PARAMS:
406 assert np.allclose(np.array(e.positionAt(u, mode="param").toTuple()), crv(u))
407
408
409@mark.parametrize("e", EDGES)

Callers

nothing calls this directly

Calls 3

fromEdgeMethod · 0.80
toTupleMethod · 0.45
positionAtMethod · 0.45

Tested by

no test coverage detected