diff --git a/Isosurfacing_3/include/CGAL/Isosurfacing_3/Interpolated_discrete_gradients_3.h b/Isosurfacing_3/include/CGAL/Isosurfacing_3/Interpolated_discrete_gradients_3.h index ccc5a9e64fe..62b9da44e0b 100644 --- a/Isosurfacing_3/include/CGAL/Isosurfacing_3/Interpolated_discrete_gradients_3.h +++ b/Isosurfacing_3/include/CGAL/Isosurfacing_3/Interpolated_discrete_gradients_3.h @@ -16,8 +16,8 @@ #include #include - #include +#include #include @@ -63,12 +63,18 @@ public: } // computes and stores gradients at the vertices of the grid - // \tparam must be ValueField a model of `IsosurfacingValueField_3` + // \tparam ValueField must be a model of `IsosurfacingValueField_3` // \param values a field of values whose gradient are being computed template void compute_discrete_gradients(const ValueField& values) { - // @todo + const FT step = CGAL::approximate_sqrt(m_grid.spacing().squared_length()) * 0.01; // finite difference step + Finite_difference_gradient_3 g(values, step); + + for(std::size_t i=0; i