fixed Box::Extend(Vec3f&)
[MicroTrace.git] / Primitive.hxx
index 04e201f..14233ad 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "Ray.hxx"
 #include "Shader.hxx"
+#include "Box.hxx"
 
 class Primitive
 {
@@ -13,8 +14,10 @@ public:
   virtual bool Intersect(Ray &ray) = 0;
   virtual bool Occluded(Ray& ray);
   virtual Vec3f GetNormal(Ray& ray) = 0;
-  
+  virtual Box CalcBounds() = 0;
+  virtual bool InVoxel(const Box& box) = 0;
   Shader* shader();
+  
 protected:
   Shader* m_shader;
 };
This page took 0.028664 seconds and 4 git commands to generate.