Skip to content
Snippets Groups Projects
Commit 13783971 authored by Guillaume Damiand's avatar Guillaume Damiand
Browse files

Use DATA_DIR to load patterns

parent 22deb8ee
No related branches found
No related tags found
No related merge requests found
...@@ -19,11 +19,8 @@ ...@@ -19,11 +19,8 @@
// Author(s) : Guillaume Damiand <guillaume.damiand@liris.cnrs.fr> // Author(s) : Guillaume Damiand <guillaume.damiand@liris.cnrs.fr>
// //
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// Prog that uses the query/replace method to generate transitions // Prog that uses the query/replace method to create an hexahedral mesh from
// for hexaedral meshes (based on the paper "Fast Quadtree/Octree adaptive // a tetrahedral one.
// 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
#include <CGAL/Linear_cell_complex_for_combinatorial_map.h> #include <CGAL/Linear_cell_complex_for_combinatorial_map.h>
#include <CGAL/Linear_cell_complex_operations.h> #include <CGAL/Linear_cell_complex_operations.h>
...@@ -210,9 +207,9 @@ bool create_mesh_from_off(const std::string& filename, ...@@ -210,9 +207,9 @@ bool create_mesh_from_off(const std::string& filename,
start2=std::chrono::system_clock::now(); start2=std::chrono::system_clock::now();
Pattern_substituer<LCC3> ps1; 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>); 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>); mark_vpattern_corners<LCC3>);
subdivide_edges(lcc); subdivide_edges(lcc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment