Fixed triangle intersection check