random triangle test
fixed bug: intersecting-twice issue