diff --git a/src/relaxation_filter.cc b/src/relaxation_filter.cc index 7927073..9ab596c 100644 --- a/src/relaxation_filter.cc +++ b/src/relaxation_filter.cc @@ -30,10 +30,10 @@ vtkTypeBool RelaxationFilter::RequestData( std::set neighbors; output->BuildLinks(); double avg[3]; - + for (vtkIdType i = 0; i < output->GetNumberOfPoints(); i++) { if (!isSurface->GetValue(i)) continue; - + output->GetPointCells(i, neighborCells); if (neighborCells->GetNumberOfIds() != 0) { @@ -70,7 +70,7 @@ vtkTypeBool RelaxationFilter::RequestData( neighborCells->Reset(); neighbors.clear(); } - + output->SetPoints(newPoints); return true; }