courses/columbia-cg-animation/week05/FOSSSim/HybridCollisionHandler.cpp
bool intersects(const ImpactZone &z1, const ImpactZone &z2)
{
    std::set<int> temp;
    set_intersection(z1.m_verts.begin(), z1.m_verts.end(), z2.m_verts.begin(), z2.m_verts.end(), inserter(temp, temp.end()));
    return temp.size() > 0;
}
////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////
////
////
////        Impact Zone Utilities
////
////        You can use them (but please do make sure you understand what they do), or 
////        implement your own versions of whatever you need
////
////
////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////
Impact Zone Utilities
You can use them (but please do make sure you understand what they do), or
implement your own versions of whatever you need
Impact Zone Utilities You can use them ( but please do make sure you understand what they do ) or implement your own versions of whatever you need
bool intersects(const ImpactZone &z1, const ImpactZone &z2)
{
    std::set<int> temp;
    set_intersection(z1.m_verts.begin(), z1.m_verts.end(), z2.m_verts.begin(), z2.m_verts.end(), inserter(temp, temp.end()));
    return temp.size() > 0;
}
bool intersects ( const ImpactZone & z1 , const ImpactZone & z2 ) { std :: set < int > temp ; set_intersection ( z1 . m_verts . begin ( ) , z1 . m_verts . end ( ) , z2 . m_verts . begin ( ) , z2 . m_verts . end ( ) , inserter ( temp , temp . end ( ) ) ) ; return temp . size ( ) > 0 ; }
Impact Zone Utilities
You can use them (but please do make sure you understand what they do), or
implement your own versions of whatever you need
Impact Zone Utilities You can use them ( but please do make sure you understand what they do ) or implement your own versions of whatever you need