diff --git a/vtkm/filter/contour/worklet/Clip.h b/vtkm/filter/contour/worklet/Clip.h index 4622804897632d13668ad0d7db63275f8a5baf6a..67c9fd3a26ea9e316e833c2271e9966f7f34c549 100644 --- a/vtkm/filter/contour/worklet/Clip.h +++ b/vtkm/filter/contour/worklet/Clip.h @@ -678,10 +678,10 @@ public: // Release batchesWithClippedCellsMask since it's no longer needed. batchesWithClippedCellsMask.ReleaseResources(); - // Sort the edge interpolations. - vtkm::cont::Algorithm::Sort(edgeInterpolation, EdgeInterpolation::LessThanOp()); // Copy the edge interpolations to the output. vtkm::cont::Algorithm::Copy(edgeInterpolation, this->EdgePointsInterpolation); + // Sort the edge interpolations. + vtkm::cont::Algorithm::Sort(this->EdgePointsInterpolation, EdgeInterpolation::LessThanOp()); // Remove duplicates. vtkm::cont::Algorithm::Unique(this->EdgePointsInterpolation, EdgeInterpolation::EqualToOp()); // Get the edge index to unique index.