useless triangles removing