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

Method testConcentricEllipses

tests/test_cadquery.py:1478–1483  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1476 self.assertEqual(14, s.faces().size())
1477
1478 def testConcentricEllipses(self):
1479 concentricEllipses = (
1480 Workplane("XY").center(10, 20).ellipse(100, 10).center(0, 0).ellipse(50, 5)
1481 )
1482 v = concentricEllipses.vertices().objects[0]
1483 self.assertTupleAlmostEquals((v.X, v.Y), (10 + 50, 20), 3)
1484
1485 def testLegoBrick(self):
1486 # test making a simple lego brick

Callers

nothing calls this directly

Calls 5

WorkplaneClass · 0.85
centerMethod · 0.80
ellipseMethod · 0.45
verticesMethod · 0.45

Tested by

no test coverage detected