using aabb planes as mirror planes
[laserbrain_demo] / src / geom.h
index f9b88e5..0d8dd00 100644 (file)
@@ -16,7 +16,17 @@ enum GeomObjectType {
        GOBJ_DISC
 };
 
+enum {
+       AABOX_PLANE_PX,
+       AABOX_PLANE_NX,
+       AABOX_PLANE_PY,
+       AABOX_PLANE_NY,
+       AABOX_PLANE_PZ,
+       AABOX_PLANE_NZ
+};
+
 class GeomObject;
+class Plane;
 
 struct HitPoint {
        float dist;                     // parametric distance along the ray
@@ -76,6 +86,7 @@ public:
        virtual void invalidate();
 
        virtual Vec3 get_corner(int idx) const;
+       virtual Plane get_plane(int pidx) const;
 
        virtual bool intersect(const Ray &ray, HitPoint *hit = 0) const;
        virtual bool contains(const Vec3 &pt) const;