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

Function test_vertex

tests/test_free_functions.py:368–378  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

366
367
368def test_vertex():
369
370 v = vertex((1, 2,))
371
372 assert v.isValid()
373 assert v.Center().toTuple() == approx((1, 2, 0))
374
375 v = vertex(1, 2, 3)
376
377 assert v.isValid()
378 assert v.Center().toTuple() == approx((1, 2, 3))
379
380
381def test_segment():

Callers

nothing calls this directly

Calls 4

vertexFunction · 0.85
isValidMethod · 0.80
toTupleMethod · 0.45
CenterMethod · 0.45

Tested by

no test coverage detected