()
| 325 | |
| 326 | |
| 327 | def test_replace(): |
| 328 | |
| 329 | b = box(1, 1, 1) |
| 330 | f_top = b.faces(">Z") |
| 331 | f_top_split = f_top / plane(0.5, 0.5).moved(f_top.Center()) |
| 332 | |
| 333 | br1 = b.replace(f_top, f_top_split) |
| 334 | |
| 335 | assert len(br1.Faces()) == len(b.Faces()) + 1 |
| 336 | assert br1.isValid() |
| 337 | |
| 338 | br2 = b.replace(f_top, *f_top_split) # invoke with individual faces |
| 339 | |
| 340 | assert len(br2.Faces()) == len(b.Faces()) + 1 |
| 341 | assert br2.isValid() |
| 342 | |
| 343 | |
| 344 | def test_addHole(): |