(self)
| 321 | self.assertEqual(2.5, startPoint[2]) |
| 322 | |
| 323 | def testRotateAboutCenter(self): |
| 324 | r = Workplane().box(1, 1, 1).rotateAboutCenter((1, 0, 0), 20) |
| 325 | assert len(r.edges("|X").vals()) == 4 |
| 326 | assert r.faces(">X").vertices("<Y").val().Center().toTuple() == approx( |
| 327 | (0.5, -0.6408563820557885, 0.2988362387301199) |
| 328 | ) |
| 329 | |
| 330 | def testPlaneRotateZNormal(self): |
| 331 | """ |