]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/halfspace.h
Use the coverage function to calculate tighter bounding boxes
[libs/math.git] / source / geometry / halfspace.h
index 09ec62ce600b9258b1044a0113a61251f5c424aa..9fdcdadfbd02b0dec41ef88c3e97539013cf2cbd 100644 (file)
@@ -24,7 +24,7 @@ public:
 
        const LinAl::Vector<T, D> &get_normal() const { return normal; }
 
-       virtual BoundingBox<T, D> get_axis_aligned_bounding_box() const;
+       virtual BoundingBox<T, D> get_axis_aligned_bounding_box(unsigned = 0) const;
        virtual bool contains(const LinAl::Vector<T, D> &) const;
        virtual unsigned get_max_ray_intersections() const { return 1; }
        virtual unsigned get_intersections(const Ray<T, D> &, SurfacePoint<T, D> *, unsigned) const;
@@ -49,7 +49,7 @@ inline HalfSpace<T, D> *HalfSpace<T, D>::clone() const
 }
 
 template<typename T, unsigned D>
-inline BoundingBox<T, D> HalfSpace<T, D>::get_axis_aligned_bounding_box() const
+inline BoundingBox<T, D> HalfSpace<T, D>::get_axis_aligned_bounding_box(unsigned) const
 {
        // XXX If the normal is aligned to an axis, should the bounding box reflect that?
        return ~BoundingBox<T, D>();