#include <CGAL/Isosurfacing_3/Finite_difference_gradient_3.h>
template<typename GeomTraits>
class CGAL::Isosurfacing::Finite_difference_gradient_3< GeomTraits >
Class template for a gradient that is calculated using finite differences.
- Is model of
IsosurfacingGradientField_3
This gradient function evaluates a value function at six points that are a given distance delta
away from the queried point along the Cartesian axes.
- Template Parameters
-
- Examples
- Isosurfacing_3/contouring_inrimage.cpp, Isosurfacing_3/contouring_mesh_offset.cpp, and Isosurfacing_3/contouring_vtk_image.cpp.
|
using | Geom_traits = GeomTraits |
|
using | FT = typename Geom_traits::FT |
|
using | Point_3 = typename Geom_traits::Point_3 |
|
using | Vector_3 = typename Geom_traits::Vector_3 |
|
◆ Finite_difference_gradient_3()
template<typename GeomTraits >
template<typename ValueFunction >
creates a new instance of this gradient class.
- Template Parameters
-
- Parameters
-
function | the function giving the scalar value at each point |
delta | the distance between samples for calculating the finite differences |
gt | the geometric traits class |
◆ operator()()
template<typename GeomTraits >
returns the value the gradient at a point in 3D space.
- Parameters
-
p | the point at which the gradient is computed. |