-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
…_geometry
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 { | ||
|
@@ -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>, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
JulyCode
Author
Member
|
||
typename Function = internal::Explicit_Cartesian_grid_function<Grid> > | ||
using Explicit_Cartesian_grid_domain_3 = | ||
internal::Isosurfacing_domain_3<typename Grid::Geom_traits, | ||
|
@@ -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() }; | ||
|
This file was deleted.
The grid isn't necessarily a Cartesian_grid_3 object anymore. You could imagine passing a grid object whose
point()
is not a recomputation of the geometric position every time and thus theExplicit_Cartesian_grid_geometry_3
makes sense.This also mixes explicit / implicit and thus makes the code more difficult to understand.
I would revert this commit.