]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Shape.hh
stream-based logging classes
[chaz/yoink] / src / Moof / Shape.hh
index b78eaade7179cd9e5a2a9274509984dabaf89c10..626ac3a391299d7d807feba416ba2dbb94d2afe2 100644 (file)
@@ -58,14 +58,18 @@ namespace Mf {
 template <int D>
 class Shape
 {
+public:
+
+       virtual ~Shape() {}
+
        /**
         * Checks if this shape is intersected by a given ray.  If so, returns the
         * distance from the start of the ray to the shape and information about the
         * intersection via the 2nd parameter.  A negative value is returned if
         * there is no intersection.
         */
-       virtual Scalar intersectRay(const Ray<D>& ray,
-                       typename Ray<D>::Intersection& intersection)
+       virtual bool intersectRay(const Ray<D>& ray,
+                       typename Ray<D>::Intersection& hit)
        {
                return SCALAR(-1.0);
        }
This page took 0.017936 seconds and 4 git commands to generate.