diff --git a/shapes/Intersect.cc b/shapes/Intersect.cc index 667e2cf..cce50ab 100644 --- a/shapes/Intersect.cc +++ b/shapes/Intersect.cc @@ -9,9 +9,12 @@ Intersect::Intersect(refptr shape1, refptr shape2) Shape::IntersectionList Intersect::intersect(refptr _this, const Ray & ray) { - IntersectionList res; IntersectionList res1 = m_shape1->intersect(m_shape1, ray); IntersectionList res2 = m_shape2->intersect(m_shape2, ray); + IntersectionList merged = res1.merge(res2, ray.getOrigin()); + + IntersectionList res; + bool in1 = false, in2 = false; /* TODO: finish */