X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometry%2Fnegation.h;h=60b92e33d1d30def4d60f631c8311acbbcd0c115;hb=2826730b5d68d1ad74dc6363af43ca796f96caa2;hp=d90c4deb5a7de767b2f36cb0ed165d53f8a5c851;hpb=a29d2c17ca70a3ed5df1e863c92ccd851d5dba6b;p=libs%2Fmath.git diff --git a/source/geometry/negation.h b/source/geometry/negation.h index d90c4de..60b92e3 100644 --- a/source/geometry/negation.h +++ b/source/geometry/negation.h @@ -26,7 +26,7 @@ public: const Shape &get_shape() const { return *shape; } - virtual BoundingBox get_axis_aligned_bounding_box() const; + virtual BoundingBox get_axis_aligned_bounding_box(unsigned = 0) const; virtual bool contains(const LinAl::Vector &) const; virtual unsigned get_max_ray_intersections() const { return shape->get_max_ray_intersections(); } virtual unsigned get_intersections(const Ray &, SurfacePoint *, unsigned) const; @@ -64,9 +64,9 @@ inline Negation *Negation::clone() const } template -inline BoundingBox Negation::get_axis_aligned_bounding_box() const +inline BoundingBox Negation::get_axis_aligned_bounding_box(unsigned detail) const { - return ~shape->get_axis_aligned_bounding_box(); + return ~shape->get_axis_aligned_bounding_box(detail); } template @@ -96,7 +96,7 @@ inline Coverage Negation::get_coverage(const BoundingBox &bbox) cons else if(coverage==NO_COVERAGE) return FULL_COVERAGE; else - return PARTIAL_COVERAGE; + return coverage; } } // namespace Geometry