]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/union.h
Optimize bounding box bisection with more early culling
[libs/math.git] / source / geometry / union.h
index 738f1f240f3de600dac9d63e1e048fe786bc3d75..8c02f2b808dc8a18301653c77e8175e83b2ea555 100644 (file)
@@ -10,6 +10,7 @@ template<typename T, unsigned D>
 struct UnionOps
 {
        static BoundingBox<T, D> combine_aabb(const BoundingBox<T, D> &a, const BoundingBox<T, D> &b) { return a|b; }
+       static Coverage combine_coverage(Coverage a, Coverage b) { return std::max(a, b); }
        static bool shortcircuit(bool c) { return c; }
 };