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

Method testEdgeWrapperMakeCircle

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

Source from the content-addressed store, hash-verified

125 )
126
127 def testEdgeWrapperMakeCircle(self):
128 halfCircleEdge = Edge.makeCircle(
129 radius=10, pnt=(0, 0, 0), dir=(0, 0, 1), angle1=0, angle2=180
130 )
131
132 # self.assertTupleAlmostEquals((0.0, 5.0, 0.0), halfCircleEdge.CenterOfBoundBox(0.0001).toTuple(),3)
133 self.assertTupleAlmostEquals(
134 (10.0, 0.0, 0.0), halfCircleEdge.startPoint().toTuple(), 3
135 )
136 self.assertTupleAlmostEquals(
137 (-10.0, 0.0, 0.0), halfCircleEdge.endPoint().toTuple(), 3
138 )
139
140 def testEdgeWrapperMakeTangentArc(self):
141 tangent_arc = Edge.makeTangentArc(

Callers

nothing calls this directly

Calls 5

startPointMethod · 0.80
endPointMethod · 0.80
makeCircleMethod · 0.45
toTupleMethod · 0.45

Tested by

no test coverage detected