triangle_check
