box overlapping
[MicroTrace.git] / Triangle.hxx
index 320cca5..8e56231 100644 (file)
@@ -6,11 +6,15 @@
 class Triangle : public Primitive
 {
 public:
-  Triangle(const Vec3f& a, const Vec3f& b, const Vec3f& c);
+  Triangle(const Vec3f& a, const Vec3f& b, const Vec3f& c, Shader* shader);
   virtual ~Triangle();
   
   virtual bool Intersect(Ray& ray);
+  virtual Vec3f GetNormal(Ray& ray);
+  virtual Box CalcBounds();
+  virtual bool InVoxel(const Box& box);
 private:
   Vec3f m_a, m_b, m_c;
+  Vec3f m_n;
 };
 #endif
This page took 0.028287 seconds and 4 git commands to generate.