bool intersects(const Triangle *t,const float *vertices,NxU32 &intersection_index,NxU32 &edge,float epsilon) { bool ret = false; if ( fm_intersectAABB(mBmin,mBmax,t->mBmin,t->mBmax) ) // only if the AABB's of the two triangles intersect... { if ( t->intersects(mI1,vertices,edge,epsilon) ) { intersection_index = mI1; ret = true; } if ( t->intersects(mI2,vertices,edge,epsilon) ) { intersection_index = mI2; ret = true; } if ( t->intersects(mI3,vertices,edge,epsilon) ) { intersection_index = mI3; ret = true; } } return ret; }
bool overlap(const ChUll &h) const { return fm_intersectAABB(mMin,mMax, h.mMin, h.mMax ); }