Test chamfer API with a box shape
(self)
| 2259 | c1.fillet(0.1) |
| 2260 | |
| 2261 | def testChamfer(self): |
| 2262 | """ |
| 2263 | Test chamfer API with a box shape |
| 2264 | """ |
| 2265 | cube = CQ(makeUnitCube()).faces(">Z").chamfer(0.1) |
| 2266 | self.saveModel(cube) |
| 2267 | self.assertEqual(10, cube.faces().size()) |
| 2268 | |
| 2269 | # should raise an error if no solid |
| 2270 | c1 = Workplane().hLine(1).vLine(1).close() |
| 2271 | with raises(ValueError): |
| 2272 | c1.chamfer(0.1) |
| 2273 | |
| 2274 | def testChamferAsymmetrical(self): |
| 2275 | """ |