fix surface point detection
This commit is contained in:
parent
d0381b7552
commit
537764fce3
@ -59,12 +59,12 @@ vtkTypeBool SurfacePointsFilter::RequestData(
|
||||
input->GetCellNeighbors(it->GetCellId(), facePoints,
|
||||
neighborCells);
|
||||
facePoints->Reset();
|
||||
if (neighborCells->GetNumberOfIds() == 1) {
|
||||
if (neighborCells->GetNumberOfIds() == 0) {
|
||||
surfacePoints->InsertNextValue(idA);
|
||||
isSurface->SetValue(idA, 1);
|
||||
surfacePoints->InsertNextValue(idB);
|
||||
isSurface->SetValue(idB, 1);
|
||||
surfacePoints->InsertNextValue(idC);
|
||||
isSurface->SetValue(idA, 1);
|
||||
isSurface->SetValue(idB, 1);
|
||||
isSurface->SetValue(idC, 1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user