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

Method testEdgeWrapperCenter

tests/test_cad_objects.py:115–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

113 self.assertTupleAlmostEquals((2, 2, 1), (bb1.xlen, bb1.ylen, bb1.zlen), 1)
114
115 def testEdgeWrapperCenter(self):
116 e = self._make_circle()
117
118 self.assertTupleAlmostEquals((1.0, 2.0, 3.0), e.Center().toTuple(), 3)
119
120 def testEdgeWrapperEllipseCenter(self):
121 e = self._make_ellipse()

Callers

nothing calls this directly

Calls 4

_make_circleMethod · 0.95
toTupleMethod · 0.45
CenterMethod · 0.45

Tested by

no test coverage detected