intersection filter function works for triangle1