Tests filleting edges on a solid
(self)
| 2238 | self.assertEqual(2, t.faces().size()) |
| 2239 | |
| 2240 | def testFillet(self): |
| 2241 | """ |
| 2242 | Tests filleting edges on a solid |
| 2243 | """ |
| 2244 | c = ( |
| 2245 | CQ(makeUnitCube()) |
| 2246 | .faces(">Z") |
| 2247 | .workplane() |
| 2248 | .circle(0.25) |
| 2249 | .extrude(0.25, True) |
| 2250 | .edges("|Z") |
| 2251 | .fillet(0.2) |
| 2252 | ) |
| 2253 | self.saveModel(c) |
| 2254 | self.assertEqual(12, c.faces().size()) |
| 2255 | |
| 2256 | # should raise an error if no solid |
| 2257 | c1 = Workplane().hLine(1).vLine(1).close() |
| 2258 | with raises(ValueError): |
| 2259 | c1.fillet(0.1) |
| 2260 | |
| 2261 | def testChamfer(self): |
| 2262 | """ |
nothing calls this directly
no test coverage detected