Move most headers into include/CGAL/Isosurfacing_3

This commit is contained in:
Mael Rouxel-Labbé 2023-01-06 18:12:15 +01:00
parent 93a59fcd77
commit d52468c350
25 changed files with 122 additions and 87 deletions

View File

@ -1,15 +1,18 @@
#include <CGAL/Cartesian.h>
#include <CGAL/Cartesian_grid_3.h>
#include <CGAL/Explicit_cartesian_grid_gradient.h>
#include <CGAL/Dual_contouring_3.h>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Explicit_cartesian_grid_domain.h>
#include <CGAL/Implicit_cartesian_grid_domain.h>
#include <CGAL/Marching_cubes_3.h>
#include <CGAL/Polygon_mesh_processing/polygon_soup_to_polygon_mesh.h>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/Isosurfacing_3/Cartesian_grid_3.h>
#include <CGAL/Isosurfacing_3/Explicit_cartesian_grid_gradient.h>
#include <CGAL/Isosurfacing_3/Dual_contouring_3.h>
#include <CGAL/Isosurfacing_3/Explicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Implicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Marching_cubes_3.h>
#include <CGAL/Polygon_mesh_processing/polygon_soup_to_polygon_mesh.h>
#include <CGAL/boost/graph/IO/OFF.h>
#include <math.h>
#include <iostream>

View File

@ -1,9 +1,9 @@
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Cartesian_grid_3.h>
#include <CGAL/Dual_contouring_3.h>
#include <CGAL/Explicit_cartesian_grid_domain.h>
#include <CGAL/Marching_cubes_3.h>
#include <CGAL/Isosurfacing_3/Cartesian_grid_3.h>
#include <CGAL/Isosurfacing_3/Dual_contouring_3.h>
#include <CGAL/Isosurfacing_3/Explicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Marching_cubes_3.h>
#include <CGAL/boost/graph/IO/OFF.h>

View File

@ -1,9 +1,9 @@
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Cartesian_grid_3.h>
#include <CGAL/Explicit_cartesian_grid_gradient.h>
#include <CGAL/Dual_contouring_3.h>
#include <CGAL/Explicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Cartesian_grid_3.h>
#include <CGAL/Isosurfacing_3/Explicit_cartesian_grid_gradient.h>
#include <CGAL/Isosurfacing_3/Explicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Dual_contouring_3.h>
#include <CGAL/boost/graph/IO/OFF.h>

View File

@ -1,9 +1,9 @@
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Bbox_3.h>
#include <CGAL/Dual_contouring_3.h>
#include <CGAL/Implicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Dual_contouring_3.h>
#include <CGAL/Isosurfacing_3/Implicit_cartesian_grid_domain.h>
#include <CGAL/Bbox_3.h>
#include <CGAL/boost/graph/IO/OFF.h>
using Kernel = CGAL::Simple_cartesian<double>;

View File

@ -1,8 +1,8 @@
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/Dual_contouring_3.h>
#include <CGAL/Implicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Dual_contouring_3.h>
#include <CGAL/Isosurfacing_3/Implicit_cartesian_grid_domain.h>
#include <CGAL/AABB_face_graph_triangle_primitive.h>
#include <CGAL/AABB_traits.h>
@ -13,6 +13,8 @@
#include <CGAL/boost/graph/IO/OFF.h>
#include <iostream>
#include <string>
#include <vector>
using Kernel = CGAL::Simple_cartesian<double>;
using FT = typename Kernel::FT;

View File

@ -1,13 +1,15 @@
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Dual_contouring_3.h>
#include <CGAL/Implicit_octree_domain.h>
#include <CGAL/Octree_wrapper.h>
#include <CGAL/Isosurfacing_3/Dual_contouring_3.h>
#include <CGAL/Isosurfacing_3/Implicit_octree_domain.h>
#include <CGAL/Isosurfacing_3/internal/Octree_wrapper.h>
#include <CGAL/boost/graph/IO/OFF.h>
#include <iostream>
#include <math.h>
#include <memory>
#include <vector>
using Kernel = CGAL::Simple_cartesian<double>;
using FT = typename Kernel::FT;
@ -17,7 +19,7 @@ using Point = typename Kernel::Point_3;
using Point_range = std::vector<Point>;
using Polygon_range = std::vector<std::vector<std::size_t> >;
using Octree_wrapper_ = CGAL::Isosurfacing::Octree_wrapper<Kernel>;
using Octree_wrapper_ = CGAL::Isosurfacing::internal::Octree_wrapper<Kernel>;
struct Refine_one_eighth
{

View File

@ -1,10 +1,15 @@
#include <CGAL/Cartesian_grid_3.h>
#include <CGAL/Explicit_cartesian_grid_domain.h>
#include <CGAL/Marching_cubes_3.h>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Isosurfacing_3/Cartesian_grid_3.h>
#include <CGAL/Isosurfacing_3/Explicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Marching_cubes_3.h>
#include <CGAL/boost/graph/IO/OFF.h>
#include <memory>
#include <vector>
using Kernel = CGAL::Simple_cartesian<double>;
using FT = typename Kernel::FT;
using Point = typename Kernel::Point_3;

View File

@ -1,11 +1,14 @@
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Isosurfacing_3/Implicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Marching_cubes_3.h>
#include <CGAL/Bbox_3.h>
#include <CGAL/Implicit_cartesian_grid_domain.h>
#include <CGAL/Marching_cubes_3.h>
#include <CGAL/boost/graph/IO/OFF.h>
#include <vector>
using Kernel = CGAL::Simple_cartesian<double>;
using FT = typename Kernel::FT;
using Vector = typename Kernel::Vector_3;

View File

@ -1,11 +1,14 @@
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Cartesian_grid_3.h>
#include <CGAL/Explicit_cartesian_grid_domain.h>
#include <CGAL/Marching_cubes_3.h>
#include <CGAL/Isosurfacing_3/Cartesian_grid_3.h>
#include <CGAL/Isosurfacing_3/Explicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Marching_cubes_3.h>
#include <CGAL/boost/graph/IO/OFF.h>
#include <memory>
#include <vector>
using Kernel = CGAL::Simple_cartesian<double>;
using Point = typename Kernel::Point_3;
using Grid = CGAL::Cartesian_grid_3<Kernel>;

View File

@ -1,17 +1,20 @@
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/Isosurfacing_3/Cartesian_grid_3.h>
#include <CGAL/Isosurfacing_3/Explicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Marching_cubes_3.h>
#include <CGAL/AABB_face_graph_triangle_primitive.h>
#include <CGAL/AABB_traits.h>
#include <CGAL/AABB_tree.h>
#include <CGAL/Cartesian_grid_3.h>
#include <CGAL/Explicit_cartesian_grid_domain.h>
#include <CGAL/Marching_cubes_3.h>
#include <CGAL/Side_of_triangle_mesh.h>
#include <CGAL/boost/graph/IO/OFF.h>
#include <iostream>
#include <memory>
#include <vector>
using Kernel = CGAL::Simple_cartesian<double>;
using FT = typename Kernel::FT;

View File

@ -9,8 +9,8 @@
//
// Author(s) : Julian Stahl
#ifndef CGAL_CARTESIAN_GRID_3_H
#define CGAL_CARTESIAN_GRID_3_H
#ifndef CGAL_ISOSURFACING_3_CARTESIAN_GRID_3_H
#define CGAL_ISOSURFACING_3_CARTESIAN_GRID_3_H
#include <CGAL/license/Isosurfacing_3.h>
@ -295,4 +295,4 @@ to_image() const
} // namespace CGAL
#endif // CGAL_CARTESIAN_GRID_3_H
#endif // CGAL_ISOSURFACING_3_CARTESIAN_GRID_3_H

View File

@ -10,12 +10,13 @@
// Author(s) : Julian Stahl
// Daniel Zint
#ifndef CGAL_DUAL_CONTOURING_3_H
#define CGAL_DUAL_CONTOURING_3_H
#ifndef CGAL_ISOSURFACING_3_DUAL_CONTOURING_3_H
#define CGAL_ISOSURFACING_3_DUAL_CONTOURING_3_H
#include <CGAL/license/Isosurfacing_3.h>
#include <CGAL/Isosurfacing_3/internal/Dual_contouring_internal.h>
#include <CGAL/tags.h>
namespace CGAL {
@ -93,4 +94,4 @@ void dual_contouring(const Domain_& domain,
} // namespace Isosurfacing
} // namespace CGAL
#endif // CGAL_DUAL_CONTOURING_3_H
#endif // CGAL_ISOSURFACING_3_DUAL_CONTOURING_3_H

View File

@ -9,16 +9,17 @@
//
// Author(s) : Julian Stahl
#ifndef CGAL_EXPLICIT_CARTESIAN_GRID_DOMAIN_H
#define CGAL_EXPLICIT_CARTESIAN_GRID_DOMAIN_H
#ifndef CGAL_ISOSURFACING_3_EXPLICIT_CARTESIAN_GRID_DOMAIN_H
#define CGAL_ISOSURFACING_3_EXPLICIT_CARTESIAN_GRID_DOMAIN_H
#include <CGAL/license/Isosurfacing_3.h>
#include <CGAL/Cartesian_grid_3.h>
#include <CGAL/Isosurfacing_3/internal/Base_domain.h>
#include <CGAL/Isosurfacing_3/internal/Cartesian_grid_geometry.h>
#include <CGAL/Isosurfacing_3/internal/Grid_topology.h>
#include <CGAL/Zero_gradient.h>
#include <CGAL/Isosurfacing_3/Cartesian_grid_3.h>
#include <CGAL/Isosurfacing_3/Zero_gradient.h>
namespace CGAL {
namespace Isosurfacing {
@ -89,4 +90,4 @@ create_explicit_cartesian_grid_domain(const std::shared_ptr<Cartesian_grid_3<Geo
} // namespace Isosurfacing
} // namespace CGAL
#endif // CGAL_EXPLICIT_CARTESIAN_GRID_DOMAIN_H
#endif // CGAL_ISOSURFACING_3_EXPLICIT_CARTESIAN_GRID_DOMAIN_H

View File

@ -9,13 +9,16 @@
//
// Author(s) : Julian Stahl
#ifndef CGAL_EXPLICIT_CARTESIAN_GRID_GRADIENT_H
#define CGAL_EXPLICIT_CARTESIAN_GRID_GRADIENT_H
#ifndef CGAL_ISOSURFACING_3_EXPLICIT_CARTESIAN_GRID_GRADIENT_H
#define CGAL_ISOSURFACING_3_EXPLICIT_CARTESIAN_GRID_GRADIENT_H
#include <CGAL/license/Isosurfacing_3.h>
#include <CGAL/Isosurfacing_3/Cartesian_grid_3.h>
#include <CGAL/Bbox_3.h>
#include <CGAL/Cartesian_grid_3.h>
#include <memory>
namespace CGAL {
namespace Isosurfacing {
@ -121,4 +124,4 @@ private:
} // namespace Isosurfacing
} // namespace CGAL
#endif // CGAL_EXPLICIT_CARTESIAN_GRID_GRADIENT_H
#endif // CGAL_ISOSURFACING_3_EXPLICIT_CARTESIAN_GRID_GRADIENT_H

View File

@ -9,8 +9,8 @@
//
// Author(s) : Julian Stahl
#ifndef CGAL_FINITE_DIFFERENCE_GRADIENT_H
#define CGAL_FINITE_DIFFERENCE_GRADIENT_H
#ifndef CGAL_ISOSURFACING_3_FINITE_DIFFERENCE_GRADIENT_H
#define CGAL_ISOSURFACING_3_FINITE_DIFFERENCE_GRADIENT_H
#include <CGAL/license/Isosurfacing_3.h>
@ -88,4 +88,4 @@ private:
} // namespace Isosurfacing
} // namespace CGAL
#endif // CGAL_FINITE_DIFFERENCE_GRADIENT_H
#endif // CGAL_ISOSURFACING_3_FINITE_DIFFERENCE_GRADIENT_H

View File

@ -9,8 +9,8 @@
//
// Author(s) : Julian Stahl
#ifndef CGAL_IMPLICIT_CARTESIAN_GRID_DOMAIN_H
#define CGAL_IMPLICIT_CARTESIAN_GRID_DOMAIN_H
#ifndef CGAL_ISOSURFACING_3_IMPLICIT_CARTESIAN_GRID_DOMAIN_H
#define CGAL_ISOSURFACING_3_IMPLICIT_CARTESIAN_GRID_DOMAIN_H
#include <CGAL/license/Isosurfacing_3.h>
@ -18,7 +18,8 @@
#include <CGAL/Isosurfacing_3/internal/Cartesian_grid_geometry.h>
#include <CGAL/Isosurfacing_3/internal/Grid_topology.h>
#include <CGAL/Isosurfacing_3/internal/Implicit_function_with_geometry.h>
#include <CGAL/Zero_gradient.h>
#include <CGAL/Isosurfacing_3/Zero_gradient.h>
#include <CGAL/Bbox_3.h>
namespace CGAL {
@ -105,4 +106,4 @@ create_implicit_cartesian_grid_domain(const Bbox_3& bbox,
} // namespace Isosurfacing
} // namespace CGAL
#endif // CGAL_IMPLICIT_CARTESIAN_GRID_DOMAIN_H
#endif // CGAL_ISOSURFACING_3_IMPLICIT_CARTESIAN_GRID_DOMAIN_H

View File

@ -9,8 +9,8 @@
//
// Author(s) : Julian Stahl
#ifndef CGAL_IMPLICIT_OCTREE_DOMAIN_H
#define CGAL_IMPLICIT_OCTREE_DOMAIN_H
#ifndef CGAL_ISOSURFACING_3_IMPLICIT_OCTREE_DOMAIN_H
#define CGAL_ISOSURFACING_3_IMPLICIT_OCTREE_DOMAIN_H
#include <CGAL/license/Isosurfacing_3.h>
@ -18,8 +18,8 @@
#include <CGAL/Isosurfacing_3/internal/Implicit_function_with_geometry.h>
#include <CGAL/Isosurfacing_3/internal/Octree_geometry.h>
#include <CGAL/Isosurfacing_3/internal/Octree_topology.h>
#include <CGAL/Octree_wrapper.h>
#include <CGAL/Zero_gradient.h>
#include <CGAL/Isosurfacing_3/internal/Octree_wrapper.h>
#include <CGAL/Isosurfacing_3/Zero_gradient.h>
namespace CGAL {
namespace Isosurfacing {
@ -40,7 +40,7 @@ template <typename GeomTraits,
typename PointFunction,
typename Gradient_ = Zero_gradient<GeomTraits> >
Implicit_octree_domain<GeomTraits, PointFunction, Gradient_>
create_implicit_octree_domain(const std::shared_ptr<Octree_wrapper<GeomTraits> > octree,
create_implicit_octree_domain(const std::shared_ptr<internal::Octree_wrapper<GeomTraits> > octree,
const PointFunction& point_function,
const Gradient_& gradient = Gradient_())
{
@ -66,4 +66,4 @@ create_implicit_octree_domain(const std::shared_ptr<Octree_wrapper<GeomTraits> >
} // namespace Isosurfacing
} // namespace CGAL
#endif // CGAL_IMPLICIT_OCTREE_DOMAIN_H
#endif // CGAL_ISOSURFACING_3_IMPLICIT_OCTREE_DOMAIN_H

View File

@ -9,8 +9,8 @@
//
// Author(s) : Julian Stahl
#ifndef CGAL_MARCHING_CUBES_3_H
#define CGAL_MARCHING_CUBES_3_H
#ifndef CGAL_ISOSURFACING_3_MARCHING_CUBES_3_H
#define CGAL_ISOSURFACING_3_MARCHING_CUBES_3_H
#include <CGAL/license/Isosurfacing_3.h>
@ -74,4 +74,4 @@ void marching_cubes(const Domain_& domain,
} // namespace Isosurfacing
} // namespace CGAL
#endif // CGAL_MARCHING_CUBES_3_H
#endif // CGAL_ISOSURFACING_3_MARCHING_CUBES_3_H

View File

@ -9,8 +9,8 @@
//
// Author(s) : Julian Stahl
#ifndef CGAL_ZERO_GRADIENT_H
#define CGAL_ZERO_GRADIENT_H
#ifndef CGAL_ISOSURFACING_3_ZERO_GRADIENT_H
#define CGAL_ISOSURFACING_3_ZERO_GRADIENT_H
#include <CGAL/license/Isosurfacing_3.h>
@ -54,4 +54,4 @@ private:
} // namespace Isosurfacing
} // namespace CGAL
#endif // CGAL_ZERO_GRADIENT_H
#endif // CGAL_ISOSURFACING_3_ZERO_GRADIENT_H

View File

@ -15,7 +15,7 @@
#include <CGAL/license/Isosurfacing_3.h>
#include <CGAL/Isosurfacing_3/internal/Octree_topology.h>
#include <CGAL/Octree_wrapper.h>
#include <CGAL/Isosurfacing_3/internal/Octree_wrapper.h>
#include <memory>

View File

@ -15,7 +15,8 @@
#include <CGAL/license/Isosurfacing_3.h>
#include <CGAL/Isosurfacing_3/internal/Cell_type.h>
#include <CGAL/Octree_wrapper.h>
#include <CGAL/Isosurfacing_3/internal/Octree_wrapper.h>
#include <CGAL/tags.h>
#ifdef CGAL_LINKED_WITH_TBB

View File

@ -10,8 +10,8 @@
// Author(s) : Daniel Zint
// Julian Stahl
#ifndef CGAL_OCTREE_WRAPPER_H
#define CGAL_OCTREE_WRAPPER_H
#ifndef CGAL_ISOSURFACING_3_INTERNAL_OCTREE_WRAPPER_H
#define CGAL_ISOSURFACING_3_INTERNAL_OCTREE_WRAPPER_H
#include <CGAL/license/Isosurfacing_3.h>
@ -21,6 +21,7 @@
namespace CGAL {
namespace Isosurfacing {
namespace internal {
template <typename GeomTraits>
class Octree_wrapper
@ -605,7 +606,8 @@ public:
}
};
} // namespace internal
} // namespace Isosurfacing
} // namespace CGAL
#endif // CGAL_OCTREE_WRAPPER_H
#endif // CGAL_ISOSURFACING_3_INTERNAL_OCTREE_WRAPPER_H

View File

@ -1,16 +1,17 @@
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/Cartesian_grid_3.h>
#include <CGAL/Dual_contouring_3.h>
#include <CGAL/Explicit_cartesian_grid_domain.h>
#include <CGAL/Implicit_cartesian_grid_domain.h>
#include <CGAL/Marching_cubes_3.h>
#include <CGAL/Octree_wrapper.h>
#include <CGAL/Polygon_mesh_processing/polygon_soup_to_polygon_mesh.h>
#include <CGAL/Isosurfacing_3/internal/Octree_wrapper.h>
#include <CGAL/Isosurfacing_3/Cartesian_grid_3.h>
#include <CGAL/Isosurfacing_3/Dual_contouring_3.h>
#include <CGAL/Isosurfacing_3/Explicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Finite_difference_gradient.h>
#include <CGAL/Isosurfacing_3/Implicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Marching_cubes_3.h>
#include <CGAL/Polygon_mesh_processing/polygon_soup_to_polygon_mesh.h>
#include <CGAL/boost/graph/IO/OFF.h>
#include <CGAL/Finite_difference_gradient.h>
#include "Timer.h"
@ -19,7 +20,7 @@ using Vector = typename Kernel::Vector_3;
using Point = typename Kernel::Point_3;
using Mesh = CGAL::Surface_mesh<Point>;
using Grid CGAL::Cartesian_grid_3<Kernel>;
using Grid = CGAL::Cartesian_grid_3<Kernel>;
using Point_range = std::vector<Point>;
using Polygon_range = std::vector<std::vector<std::size_t> >;

View File

@ -1,8 +1,11 @@
#include <CGAL/Marching_cubes_3.h>
#include <CGAL/Isosurfacing_3/Marching_cubes_3.h>
#include "test_util.h"
#include <iostream>
#include <string>
#define WRITE_OFF
struct Sphere_function

View File

@ -4,9 +4,10 @@
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/Cartesian_grid_3.h>
#include <CGAL/Explicit_cartesian_grid_domain.h>
#include <CGAL/Implicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Cartesian_grid_3.h>
#include <CGAL/Isosurfacing_3/Explicit_cartesian_grid_domain.h>
#include <CGAL/Isosurfacing_3/Implicit_cartesian_grid_domain.h>
#include <CGAL/Polygon_mesh_processing/distance.h>
#include <CGAL/Polygon_mesh_processing/manifoldness.h>
#include <CGAL/Polygon_mesh_processing/polygon_soup_to_polygon_mesh.h>