MCPcopy Index your code
hub / github.com/CadQuery/cadquery / test_center

Function test_center

tests/test_shapes.py:405–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

403
404
405def test_center():
406
407 v = vertex(1, 1, 1)
408
409 for obj in (v, Shape(v.wrapped)):
410 c = obj.Center()
411 assert c.x == approx(1)
412 assert c.y == approx(1)
413 assert c.z == approx(1)
414
415
416def test_reverse(simple_box):

Callers

nothing calls this directly

Calls 3

vertexFunction · 0.90
ShapeClass · 0.90
CenterMethod · 0.45

Tested by

no test coverage detected