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

Method testSimpleMirror

tests/test_cadquery.py:2128–2140  ·  view source on GitHub ↗

Tests a simple mirroring operation

(self)

Source from the content-addressed store, hash-verified

2126 self.saveModel(r)
2127
2128 def testSimpleMirror(self):
2129 """
2130 Tests a simple mirroring operation
2131 """
2132 s = (
2133 Workplane("XY")
2134 .lineTo(2, 2)
2135 .threePointArc((3, 1), (2, 0))
2136 .mirrorX()
2137 .extrude(0.25)
2138 )
2139 self.assertEqual(6, s.faces().size())
2140 self.saveModel(s)
2141
2142 def testUnorderedMirror(self):
2143 """

Callers

nothing calls this directly

Calls 8

saveModelMethod · 0.95
WorkplaneClass · 0.85
extrudeMethod · 0.80
mirrorXMethod · 0.80
threePointArcMethod · 0.80
lineToMethod · 0.80
sizeMethod · 0.45
facesMethod · 0.45

Tested by

no test coverage detected