Changed triangle check to plane method