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:
@@ -103,6 +103,13 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
/** combine two bboxes */
|
||||
static BBox3 join(const BBox3& bb1, const BBox3& bb2) {
|
||||
const Point3 min( std::min(bb1.p1.x, bb2.p1.x), std::min(bb1.p1.y, bb2.p1.y), std::min(bb1.p1.z, bb2.p1.z) );
|
||||
const Point3 max( std::max(bb1.p2.x, bb2.p2.x), std::max(bb1.p2.y, bb2.p2.y), std::max(bb1.p2.z, bb2.p2.z) );
|
||||
return BBox3(min,max);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // BBOX3_H
|
||||
|
||||
Reference in New Issue
Block a user