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

Function test_surface_positions

tests/test_nurbs.py:495–502  ·  view source on GitHub ↗
(face, request)

Source from the content-addressed store, hash-verified

493
494@mark.parametrize("face", FACES)
495def test_surface_positions(face, request):
496
497 f = request.getfixturevalue(face)
498 surf = Surface.fromFace(f)
499
500 for u in PARAMS:
501 for v in PARAMS:
502 assert np.allclose(f.positionAt(u, v).toTuple(), surf(u, v))
503
504
505@mark.parametrize("face", FACES)

Callers

nothing calls this directly

Calls 3

fromFaceMethod · 0.80
toTupleMethod · 0.45
positionAtMethod · 0.45

Tested by

no test coverage detected