Skip to content

Commit

Permalink
Replace Explicit_Cartesian_grid_geometry with Implicit_cartesian_grid…
Browse files Browse the repository at this point in the history
…_geometry
  • Loading branch information
JulyCode committed Jan 24, 2023
1 parent 98d0c11 commit bbd0255
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@

#include <CGAL/Isosurfacing_3/internal/Isosurfacing_domain_3.h>
#include <CGAL/Isosurfacing_3/internal/Explicit_Cartesian_grid_function.h>
#include <CGAL/Isosurfacing_3/internal/Explicit_Cartesian_grid_geometry_3.h>
#include <CGAL/Isosurfacing_3/internal/Implicit_Cartesian_grid_geometry_3.h>
#include <CGAL/Isosurfacing_3/internal/Grid_topology_3.h>
#include <CGAL/Isosurfacing_3/Zero_gradient.h>
#include <CGAL/Bbox_3.h>

namespace CGAL {
namespace Isosurfacing {
Expand All @@ -44,7 +45,7 @@ using Explicit_Cartesian_grid_domain_3 = unspecified_type;
template <typename Grid,
typename Gradient = Zero_gradient,
typename Topology = internal::Grid_topology_3,
typename Geometry = internal::Explicit_Cartesian_grid_geometry_3<Grid>,
typename Geometry = internal::Implicit_Cartesian_grid_geometry_3<typename Grid::Geom_traits>,
typename Function = internal::Explicit_Cartesian_grid_function<Grid> >
using Explicit_Cartesian_grid_domain_3 =
internal::Isosurfacing_domain_3<typename Grid::Geom_traits,
Expand Down Expand Up @@ -96,8 +97,11 @@ create_explicit_Cartesian_grid_domain(const Grid& grid,
const std::size_t size_j = grid.ydim();
const std::size_t size_k = grid.zdim();

const Bbox_3& bbox = grid.bbox();
const typename Geometry::Vector_3 offset{bbox.xmin(), bbox.ymin(), bbox.zmin()};

const Topology topo { size_i, size_j, size_k };
const Geometry geom { grid };
const Geometry geom { offset, grid.spacing() };
const Function func { grid };

return Domain{ topo, geom, func, grad, grid.geom_traits() };
Expand Down

This file was deleted.

0 comments on commit bbd0255

Please sign in to comment.