Mesh: define the typenames FacetIndex and PointIndex to distinguish between facet and point related indexes
This commit is contained in:
@@ -466,7 +466,7 @@ void ImageTriangulation::perform()
|
||||
const MeshCore::MeshFacetArray& face = kernel.GetFacets();
|
||||
MeshCore::MeshAlgorithm meshAlg(kernel);
|
||||
meshAlg.SetPointFlag(MeshCore::MeshPoint::INVALID);
|
||||
std::vector<unsigned long> validPoints;
|
||||
std::vector<MeshCore::PointIndex> validPoints;
|
||||
validPoints.reserve(face.size()*3);
|
||||
for (MeshCore::MeshFacetArray::_TConstIterator it = face.begin(); it != face.end(); ++it) {
|
||||
validPoints.push_back(it->_aulPoints[0]);
|
||||
@@ -481,7 +481,7 @@ void ImageTriangulation::perform()
|
||||
|
||||
unsigned long countInvalid = meshAlg.CountPointFlag(MeshCore::MeshPoint::INVALID);
|
||||
if (countInvalid > 0) {
|
||||
std::vector<unsigned long> invalidPoints;
|
||||
std::vector<MeshCore::PointIndex> invalidPoints;
|
||||
invalidPoints.reserve(countInvalid);
|
||||
meshAlg.GetPointsFlag(invalidPoints, MeshCore::MeshPoint::INVALID);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user