From 137839718e7d1bcb9802f108ccc53583b72769cc Mon Sep 17 00:00:00 2001 From: Guillaume Damiand <guillaume.damiand@liris.cnrs.fr> Date: Fri, 4 Mar 2022 13:07:51 +0100 Subject: [PATCH] Use DATA_DIR to load patterns --- src/tetra-to-hexa.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/tetra-to-hexa.cpp b/src/tetra-to-hexa.cpp index 4f49307..ed6a6c4 100644 --- a/src/tetra-to-hexa.cpp +++ b/src/tetra-to-hexa.cpp @@ -19,11 +19,8 @@ // Author(s) : Guillaume Damiand <guillaume.damiand@liris.cnrs.fr> // //////////////////////////////////////////////////////////////////////////////// -// Prog that uses the query/replace method to generate transitions -// for hexaedral meshes (based on the paper "Fast Quadtree/Octree adaptive -// meshing and re-meshing with linear mixed elements"). -// It uses the 325 vpatterns in hexa-325-patterns -// and the 5 fpatterns in square-5-patterns +// Prog that uses the query/replace method to create an hexahedral mesh from +// a tetrahedral one. #include <CGAL/Linear_cell_complex_for_combinatorial_map.h> #include <CGAL/Linear_cell_complex_operations.h> @@ -210,9 +207,9 @@ bool create_mesh_from_off(const std::string& filename, start2=std::chrono::system_clock::now(); Pattern_substituer<LCC3> ps1; - ps1.load_fpatterns("data/tetra-to-hexa/fpattern/", + ps1.load_fpatterns(DATA_DIR"/tetra-to-hexa/fpattern/", mark_fpattern_corners<LCC3>); - ps1.load_vpatterns("data/tetra-to-hexa/vpattern/", + ps1.load_vpatterns(DATA_DIR"/tetra-to-hexa/vpattern/", mark_vpattern_corners<LCC3>); subdivide_edges(lcc); -- GitLab