|
863 | 863 | @test crs(c) <: Cartesian{NoDatum} |
864 | 864 | @test Meshes.lentype(c) == ℳ |
865 | 865 | @test radius(c) == T(5) * u"m" |
866 | | - @test bottom(c) == Plane(cart(1, 2, 3), vector(0, 0, 1)) |
867 | | - @test top(c) == Plane(cart(4, 5, 6), vector(0, 0, 1)) |
| 866 | + @test bottom(c) == Disk(Plane(cart(1, 2, 3), vector(0, 0, 1)), Meshes.bottomradius(c)) |
| 867 | + @test top(c) == Disk(Plane(cart(4, 5, 6), vector(0, 0, 1)), Meshes.topradius(c)) |
868 | 868 | @test axis(c) == Line(cart(1, 2, 3), cart(4, 5, 6)) |
869 | 869 | @test !isright(c) |
870 | 870 | @test measure(c) == volume(c) ≈ T(5)^2 * pi * T(3) * sqrt(T(3)) * u"m^3" |
|
897 | 897 |
|
898 | 898 | c = Cylinder(cart(0, 0, 0), cart(0, 0, 1), T(1)) |
899 | 899 | @test radius(c) == T(1) * u"m" |
900 | | - @test bottom(c) == Plane(cart(0, 0, 0), vector(0, 0, 1)) |
901 | | - @test top(c) == Plane(cart(0, 0, 1), vector(0, 0, 1)) |
| 900 | + @test bottom(c) == Disk(Plane(cart(0, 0, 0), vector(0, 0, 1)), T(1)) |
| 901 | + @test top(c) == Disk(Plane(cart(0, 0, 1), vector(0, 0, 1)), T(1)) |
902 | 902 | @test centroid(c) == cart(0.0, 0.0, 0.5) |
903 | 903 | @test axis(c) == Line(cart(0, 0, 0), cart(0, 0, 1)) |
904 | 904 | @test isright(c) |
|
943 | 943 | @test crs(c) <: Cartesian{NoDatum} |
944 | 944 | @test Meshes.lentype(c) == ℳ |
945 | 945 | @test radius(c) == T(2) * u"m" |
946 | | - @test bottom(c) == Plane(cart(0, 0, 0), vector(0, 0, 1)) |
947 | | - @test top(c) == Plane(cart(0, 0, 1), vector(0, 0, 1)) |
| 946 | + @test bottom(c) == Disk(Plane(cart(0, 0, 0), vector(0, 0, 1)), T(2)) |
| 947 | + @test top(c) == Disk(Plane(cart(0, 0, 1), vector(0, 0, 1)), T(2)) |
948 | 948 | @test centroid(c) == cart(0.0, 0.0, 0.5) |
949 | 949 | @test axis(c) == Line(cart(0, 0, 0), cart(0, 0, 1)) |
950 | 950 | @test isright(c) |
|
0 commit comments