fix surface point detection

This commit is contained in:
papush! 2022-03-08 15:26:17 +01:00
parent d0381b7552
commit 537764fce3

View File

@ -59,12 +59,12 @@ vtkTypeBool SurfacePointsFilter::RequestData(
input->GetCellNeighbors(it->GetCellId(), facePoints, input->GetCellNeighbors(it->GetCellId(), facePoints,
neighborCells); neighborCells);
facePoints->Reset(); facePoints->Reset();
if (neighborCells->GetNumberOfIds() == 1) { if (neighborCells->GetNumberOfIds() == 0) {
surfacePoints->InsertNextValue(idA); surfacePoints->InsertNextValue(idA);
isSurface->SetValue(idA, 1);
surfacePoints->InsertNextValue(idB); surfacePoints->InsertNextValue(idB);
isSurface->SetValue(idB, 1);
surfacePoints->InsertNextValue(idC); surfacePoints->InsertNextValue(idC);
isSurface->SetValue(idA, 1);
isSurface->SetValue(idB, 1);
isSurface->SetValue(idC, 1); isSurface->SetValue(idC, 1);
} }
} }