Add operator <

This commit is contained in:
Andreas Fabri 2018-07-10 17:05:38 +02:00
parent d9024f39f2
commit 01be9610ee
2 changed files with 7 additions and 0 deletions

View File

@ -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)
{}

View File

@ -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