From 01be9610ee87c5ae554875e91264a00a08f8bb36 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Tue, 10 Jul 2018 17:05:38 +0200 Subject: [PATCH] Add operator < --- .../CGAL/Heat_method_3/Intrinsic_Delaunay_Triangulation_3.h | 5 +++++ .../heat_method_intrinsic_surface_mesh_test.cpp | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Heat_method_3/include/CGAL/Heat_method_3/Intrinsic_Delaunay_Triangulation_3.h b/Heat_method_3/include/CGAL/Heat_method_3/Intrinsic_Delaunay_Triangulation_3.h index 35ce5585fda..54228a27f82 100644 --- a/Heat_method_3/include/CGAL/Heat_method_3/Intrinsic_Delaunay_Triangulation_3.h +++ b/Heat_method_3/include/CGAL/Heat_method_3/Intrinsic_Delaunay_Triangulation_3.h @@ -137,6 +137,11 @@ namespace Intrinsic_Delaunay_Triangulation_3 { struct Vertex_descriptor { halfedge_descriptor hd; + bool operator<(const Vertex_descriptor& other) const + { + return hd < other.hd; + } + Vertex_descriptor(const halfedge_descriptor& hd) : hd(hd) {} diff --git a/Heat_method_3/test/Heat_method_3/heat_method_intrinsic_surface_mesh_test.cpp b/Heat_method_3/test/Heat_method_3/heat_method_intrinsic_surface_mesh_test.cpp index da2a7640831..bbd0583d2d4 100644 --- a/Heat_method_3/test/Heat_method_3/heat_method_intrinsic_surface_mesh_test.cpp +++ b/Heat_method_3/test/Heat_method_3/heat_method_intrinsic_surface_mesh_test.cpp @@ -131,6 +131,8 @@ int main() //source set tests Heat_method hm(sm, vertex_distance_map); + hm.add_source(* vertices(sm).first); + hm.update(); #if 0 source_set_tests(hm,sm); //cotan matrix tests