+ fix author note, fix various crashes, improve mesh selection stuff

This commit is contained in:
wmayer
2014-08-01 16:39:59 +02:00
parent 4032a88c2d
commit 7a3ddd5bae
10 changed files with 31 additions and 10 deletions

View File

@@ -754,7 +754,7 @@ void MeshEvalSelfIntersection::GetIntersections(std::vector<std::pair<unsigned l
}
}
bool MeshFixSelfIntersection::Fixup()
std::vector<unsigned long> MeshFixSelfIntersection::GetFacets() const
{
std::vector<unsigned long> indices;
const MeshFacetArray& rFaces = _rclMesh.GetFacets();
@@ -781,8 +781,12 @@ bool MeshFixSelfIntersection::Fixup()
std::sort(indices.begin(), indices.end());
indices.erase(std::unique(indices.begin(), indices.end()), indices.end());
_rclMesh.DeleteFacets(indices);
return indices;
}
bool MeshFixSelfIntersection::Fixup()
{
_rclMesh.DeleteFacets(GetFacets());
return true;
}