More bounding boxes

This commit is contained in:
Godzil
2020-02-28 18:33:59 +00:00
parent b4ae737b40
commit 307c125eba
19 changed files with 92 additions and 55 deletions

View File

@@ -163,8 +163,11 @@ TEST(ConeTest, An_uncut_cone_have_infinite_bounds)
TEST(ConeTest, A_cut_cone_have_finite_bounds)
{
Cone t = Cone();
t.minCap = -1;
t.maxCap = 1;
t.minCap = -5;
t.maxCap = 3;
BoundingBox res = t.getBounds();
ASSERT_TRUE(t.haveFiniteBounds());
ASSERT_EQ(res.min, Point(-5, -5, -5));
ASSERT_EQ(res.max, Point(5, 3, 5));
}