diff --git a/Isosurfacing_3/include/CGAL/Isosurfacing_3/Explicit_Cartesian_grid_domain_3.h b/Isosurfacing_3/include/CGAL/Isosurfacing_3/Explicit_Cartesian_grid_domain_3.h index 9ebac1bcafa3..c4cca891a9e0 100644 --- a/Isosurfacing_3/include/CGAL/Isosurfacing_3/Explicit_Cartesian_grid_domain_3.h +++ b/Isosurfacing_3/include/CGAL/Isosurfacing_3/Explicit_Cartesian_grid_domain_3.h @@ -16,9 +16,10 @@ #include #include -#include +#include #include #include +#include namespace CGAL { namespace Isosurfacing { @@ -44,7 +45,7 @@ using Explicit_Cartesian_grid_domain_3 = unspecified_type; template , + typename Geometry = internal::Implicit_Cartesian_grid_geometry_3, typename Function = internal::Explicit_Cartesian_grid_function > using Explicit_Cartesian_grid_domain_3 = internal::Isosurfacing_domain_3 - -#include - -namespace CGAL { -namespace Isosurfacing { -namespace internal { - -template -class Explicit_Cartesian_grid_geometry_3 -{ - using Vertex_descriptor = typename Grid_topology_3::Vertex_descriptor; - -public: - Explicit_Cartesian_grid_geometry_3(const Grid& grid) - : m_grid{grid} - { } - - // gets the position of vertex `v` - decltype(auto) /*Point_3*/ operator()(const Vertex_descriptor& v) const - { - return m_grid.point(v[0], v[1], v[2]); - } - -private: - const Grid& m_grid; -}; - -} // namespace internal -} // namespace Isosurfacing -} // namespace CGAL - -#endif // CGAL_ISOSURFACING_3_INTERNAL_EXPLICIT_CARTESIAN_GRID_GEOMETRY_3_H