Goosefoot Mesher - CGAL
zone_priority_sorting.h
1 #ifndef ZONE_PRIORITY_SORTING_H
2 #define ZONE_PRIORITY_SORTING_H
3 
4 #include "mesher_cgal.h"
5 
6 #include <CGAL/Side_of_triangle_mesh.h>
7 
8 #include <CGAL/AABB_tree.h>
9 #include <CGAL/AABB_traits.h>
10 #include <CGAL/AABB_face_graph_triangle_primitive.h>
11 
12 typedef CGAL::AABB_face_graph_triangle_primitive<Polyhedron> Primitive;
13 typedef CGAL::AABB_traits<K, Primitive> Traits;
14 typedef CGAL::AABB_tree<Traits> Tree;
15 
16 typedef CGAL::Side_of_triangle_mesh<Polyhedron,K> Side_of_triangle_mesh;
17 
18 namespace mesherCGAL {
20  {
21  public:
23  bool operator() (const std::unique_ptr<Zone>& z, const std::unique_ptr<Zone>& w) const
24  { return fabs(z->get_priority() - w->get_priority()) < 1e-9 ? (z->get_id() < w->get_id()) : z->get_priority() < w->get_priority(); }
25  };
26 }
27 
28 #endif
Definition: zone_priority_sorting.h:19
Definition: implicit_zone_function.h:17