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

Method testEdgeWrapperEllipseCenter

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

Source from the content-addressed store, hash-verified

118 self.assertTupleAlmostEquals((1.0, 2.0, 3.0), e.Center().toTuple(), 3)
119
120 def testEdgeWrapperEllipseCenter(self):
121 e = self._make_ellipse()
122 w = Wire.assembleEdges([e])
123 self.assertTupleAlmostEquals(
124 (1.0, 2.0, 3.0), Face.makeFromWires(w).Center().toTuple(), 3
125 )
126
127 def testEdgeWrapperMakeCircle(self):
128 halfCircleEdge = Edge.makeCircle(

Callers

nothing calls this directly

Calls 6

_make_ellipseMethod · 0.95
assembleEdgesMethod · 0.80
toTupleMethod · 0.45
CenterMethod · 0.45
makeFromWiresMethod · 0.45

Tested by

no test coverage detected