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

Method testTranslateWire

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

Source from the content-addressed store, hash-verified

1555 self.assertAlmostEqual(1.5, d.faces("<Z").vertices().item(0).val().Z, 3)
1556
1557 def testTranslateWire(self):
1558 c = CQ(makeUnitSquareWire())
1559 self.assertAlmostEqual(0.0, c.edges().vertices().item(0).val().Z, 3)
1560 d = c.translate(Vector(0, 0, 1.5))
1561 self.assertAlmostEqual(1.5, d.edges().vertices().item(0).val().Z, 3)
1562
1563 def testSolidReferencesCombine(self):
1564 "test that solid references are preserved correctly"

Callers

nothing calls this directly

Calls 7

makeUnitSquareWireFunction · 0.90
VectorClass · 0.85
itemMethod · 0.80
valMethod · 0.45
verticesMethod · 0.45
edgesMethod · 0.45
translateMethod · 0.45

Tested by

no test coverage detected