worked on 2D/3D raytracing
adjusted BVH improved 2D/3D BVH new bounding volumes new test cases renamed some test-cases for grouping reasons made GPC header-only using slight adjustments
This commit is contained in:
18
tests/geo/TestBBox3.cpp
Normal file
18
tests/geo/TestBBox3.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifdef WITH_TESTS
|
||||
|
||||
#include "../Tests.h"
|
||||
|
||||
#include "../../geo/BBox3.h"
|
||||
|
||||
TEST(Geo_BBox3, noIntersect) {
|
||||
|
||||
BBox3 bb1(Point3(0,0,0), Point3(1,1,1));
|
||||
BBox3 bb2(Point3(1,1,1), Point3(2,3,4));
|
||||
|
||||
BBox3 joined = BBox3::join(bb1, bb2);
|
||||
ASSERT_EQ(Point3(2,3,4), joined.getMax());
|
||||
ASSERT_EQ(Point3(0,0,0), joined.getMin());
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user