Template Function lvr2::cleanContours

Function Documentation

template<typename BaseVecT>
void lvr2::cleanContours(BaseMesh<BaseVecT> &mesh, int iterations, float areaThreshold)

Removes faces with a high number of boundary edges.

Faces which have 2 or 3 adjacent boundary edges, are removed. If the face is adjacent to only one boundary edge, it is deleted if the face’s area is smaller than areaThreshold.