This task requires not only to remove faces with collinear vertices, but probably to make extra changes to the mesh (like splitting neighboring triangles) to ensure that it is "correct" (each triangle edge is always shared by only 2 triangles, without partial edge overlapping).
This task requires not only to remove faces with collinear vertices, but probably to make extra changes to the mesh (like splitting neighboring triangles) to ensure that it is "correct" (each triangle edge is always shared by only 2 triangles, without partial edge overlapping).