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

Method testFrontReference

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

Source from the content-addressed store, hash-verified

297 self.assertEqual(type(r.first().val()), Compound)
298
299 def testFrontReference(self):
300 # make a workplane on the top face
301 s = CQ(makeUnitCube()).faces("front").workplane()
302 r = s.circle(0.125).cutBlind(-2.0)
303 self.saveModel(r)
304 # the result should have 7 faces
305 self.assertEqual(7, r.faces().size())
306 self.assertEqual(type(r.val()), Compound)
307 self.assertEqual(type(r.first().val()), Compound)
308
309 def testRotate(self):
310 """Test solid rotation at the CQ object level."""

Callers

nothing calls this directly

Calls 9

saveModelMethod · 0.95
makeUnitCubeFunction · 0.90
workplaneMethod · 0.80
cutBlindMethod · 0.80
facesMethod · 0.45
circleMethod · 0.45
sizeMethod · 0.45
valMethod · 0.45
firstMethod · 0.45

Tested by

no test coverage detected