added chk prevent triangulate infinite loop