fart/shapes/Intersect.cc
Josh Holtrop ab2832a660 fixed compile issues with switch to new Shape::IntersectionList
git-svn-id: svn://anubis/fart/branches/2009-02-23_Shape_IntersectList_Update@145 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-02-23 20:26:45 +00:00

26 lines
528 B
C++

#include "Intersect.h"
Intersect::Intersect(refptr<Shape> shape1, refptr<Shape> shape2)
{
m_shape1 = shape1;
m_shape2 = shape2;
}
Shape::IntersectionList Intersect::intersect(refptr<Shape> _this, const Ray & ray)
{
IntersectionList res;
IntersectionList res1 = m_shape1->intersect(m_shape1, ray);
IntersectionList res2 = m_shape2->intersect(m_shape2, ray);
/* TODO: finish */
return res;
}
Vector Intersect::getNormalAt(const Vector & pt)
{
/* TODO: finish */
return Vector(0, 0, 0);
}