()
| 471 | |
| 472 | |
| 473 | def test_cone(): |
| 474 | |
| 475 | s = cone(2, 1) |
| 476 | |
| 477 | assert s.isValid() |
| 478 | assert s.Volume() == approx(1 / 3 * pi) |
| 479 | |
| 480 | s = cone(2, 1, 1) |
| 481 | |
| 482 | assert s.isValid() |
| 483 | assert s.Volume() == approx(1 / 3 * pi * (1 + 0.25 + 0.5)) |
| 484 | |
| 485 | |
| 486 | def test_spline(): |