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

Method testWorkplaneFromFace

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

Source from the content-addressed store, hash-verified

287 r.eachpoint(callback_fn)
288
289 def testWorkplaneFromFace(self):
290 # make a workplane on the top face
291 s = CQ(makeUnitCube()).faces(">Z").workplane()
292 r = s.circle(0.125).cutBlind(-2.0)
293 self.saveModel(r)
294 # the result should have 7 faces
295 self.assertEqual(7, r.faces().size())
296 self.assertEqual(type(r.val()), Compound)
297 self.assertEqual(type(r.first().val()), Compound)
298
299 def testFrontReference(self):
300 # make a workplane on the top face

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