(self)
| 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 |