fixed grid problem with triangle2d