Test chamfer API with a box shape for asymmetrical lengths
(self)
| 2272 | c1.chamfer(0.1) |
| 2273 | |
| 2274 | def testChamferAsymmetrical(self): |
| 2275 | """ |
| 2276 | Test chamfer API with a box shape for asymmetrical lengths |
| 2277 | """ |
| 2278 | cube = CQ(makeUnitCube()).faces(">Z").chamfer(0.1, 0.2) |
| 2279 | self.saveModel(cube) |
| 2280 | self.assertEqual(10, cube.faces().size()) |
| 2281 | |
| 2282 | # test if edge lengths are different |
| 2283 | edge = cube.edges(">Z").vals()[0] |
| 2284 | self.assertAlmostEqual(0.6, edge.Length(), 3) |
| 2285 | edge = cube.edges("|Z").vals()[0] |
| 2286 | self.assertAlmostEqual(0.9, edge.Length(), 3) |
| 2287 | |
| 2288 | def testChamferCylinder(self): |
| 2289 | """ |