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
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;