diff --git a/Surface_mesh_segmentation/include/CGAL/internal/Surface_mesh_segmentation/Filters.h b/Surface_mesh_segmentation/include/CGAL/internal/Surface_mesh_segmentation/Filters.h index 5384dd4552a..d4b6123a5af 100644 --- a/Surface_mesh_segmentation/include/CGAL/internal/Surface_mesh_segmentation/Filters.h +++ b/Surface_mesh_segmentation/include/CGAL/internal/Surface_mesh_segmentation/Filters.h @@ -133,7 +133,7 @@ public: neighbor_values.begin() + half_neighbor_count); median_sdf /= 2; } - smoothed_values.push_back(total_sdf_value / total_weight); + smoothed_values.push_back(median_sdf); } // put smoothed values back again to values pmap. std::size_t index = 0;