Test Moving workplane center
(self)
| 22 | |
| 23 | class TestCQSelectors(BaseTest): |
| 24 | def testWorkplaneCenter(self): |
| 25 | "Test Moving workplane center" |
| 26 | s = Workplane(Plane.XY()) |
| 27 | |
| 28 | # current point and world point should be equal |
| 29 | self.assertTupleAlmostEquals((0.0, 0.0, 0.0), s.plane.origin.toTuple(), 3) |
| 30 | |
| 31 | # move origin and confirm center moves |
| 32 | s = s.center(-2.0, -2.0) |
| 33 | |
| 34 | # current point should be 0,0, but |
| 35 | |
| 36 | self.assertTupleAlmostEquals((-2.0, -2.0, 0.0), s.plane.origin.toTuple(), 3) |
| 37 | |
| 38 | def testVertices(self): |
| 39 | t = makeUnitSquareWire() # square box |
nothing calls this directly
no test coverage detected