X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgeometry%2Fextrudedshape.h;h=fd4597b9b1a5c935f50a3eb3a6e02296cd3f3a9f;hb=44bd1d1ab256d397be4e2169c4ca5efdd0569d31;hp=e702f90a7a0f844d93f417b53d38a8c6aea2359a;hpb=a29d2c17ca70a3ed5df1e863c92ccd851d5dba6b;p=libs%2Fmath.git diff --git a/source/geometry/extrudedshape.h b/source/geometry/extrudedshape.h index e702f90..fd4597b 100644 --- a/source/geometry/extrudedshape.h +++ b/source/geometry/extrudedshape.h @@ -31,7 +31,7 @@ public: const Shape &get_base() const { return *base; } T get_length() const { return length; } - 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; virtual unsigned get_intersections(const Ray &, SurfacePoint *, unsigned) const; @@ -75,9 +75,9 @@ inline ExtrudedShape *ExtrudedShape::clone() const } template -inline BoundingBox ExtrudedShape::get_axis_aligned_bounding_box() const +inline BoundingBox ExtrudedShape::get_axis_aligned_bounding_box(unsigned detail) const { - BoundingBox base_bbox = base->get_axis_aligned_bounding_box(); + BoundingBox base_bbox = base->get_axis_aligned_bounding_box(detail); T half_length = length/T(2); return BoundingBox(compose(base_bbox.get_minimum_point(), -half_length), compose(base_bbox.get_maximum_point(), half_length));