From 537764fce3ea5f2103eb646174f90a92852c312d Mon Sep 17 00:00:00 2001 From: papush! Date: Tue, 8 Mar 2022 15:26:17 +0100 Subject: [PATCH] fix surface point detection --- src/surface_points_filter.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/surface_points_filter.cc b/src/surface_points_filter.cc index 3b240e3..2de5261 100644 --- a/src/surface_points_filter.cc +++ b/src/surface_points_filter.cc @@ -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); } }