(simple_box)
| 414 | |
| 415 | |
| 416 | def test_reverse(simple_box): |
| 417 | |
| 418 | simple_box = box(1, 1, 1) |
| 419 | |
| 420 | assert simple_box.Volume() > 0 |
| 421 | |
| 422 | br = simple_box.reverse() |
| 423 | |
| 424 | # reversed solid will have a negative volume |
| 425 | assert br.Volume() < 0 |
| 426 | |
| 427 | # normals will be pointing in opposite direction |
| 428 | delta = simple_box.face().normalAt() + br.face().normalAt() |
| 429 | assert delta.Length == approx(0) |
| 430 | |
| 431 | |
| 432 | def test_siblings(simple_box): |