Пример #1
0
bool Intersect::intersect_EE_filtered(const Vec3f& a0, const Vec3f& b0, const Vec3f& c0, const Vec3f& d0,
                                      const Vec3f& a1, const Vec3f& b1, const Vec3f& c1, const Vec3f& d1,
                                      FCL_REAL* collision_time, Vec3f* p_i, bool useNewton)
{
  if(intersectPreFiltering(a0, b0, c0, d0, a1, b1, c1, d1))
  {
    return intersect_EE(a0, b0, c0, d0, a1, b1, c1, d1, collision_time, p_i, useNewton);
  }
  else
    return false;
}
Пример #2
0
 bool Intersect::intersect_VF_filtered(const Vec3f& a0, const Vec3f& b0, const Vec3f& c0, const Vec3f& p0,
                          const Vec3f& a1, const Vec3f& b1, const Vec3f& c1, const Vec3f& p1,
                          BVH_REAL* collision_time, Vec3f* p_i, bool useNewton)
 {
   if(intersectPreFiltering(a0, b0, c0, p0, a1, b1, c1, p1))
   {
     return intersect_VF(a0, b0, c0, p0, a1, b1, c1, p1, collision_time, p_i, useNewton);
   }
   else
     return false;
 }