From 49c52a00f04f15b1b74034dc437e12b66a1f2acd Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Mon, 25 Sep 2023 18:55:57 +0200 Subject: [PATCH] better fix for cheese23 The data set was not coplanar, but a few vertices were missing from the initial CDT. --- Triangulation_3/test/Triangulation_3/cdt_3_from_off.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Triangulation_3/test/Triangulation_3/cdt_3_from_off.cpp b/Triangulation_3/test/Triangulation_3/cdt_3_from_off.cpp index 60420286a7f..840eeceabf3 100644 --- a/Triangulation_3/test/Triangulation_3/cdt_3_from_off.cpp +++ b/Triangulation_3/test/Triangulation_3/cdt_3_from_off.cpp @@ -218,7 +218,11 @@ int go(Mesh mesh, std::string output_filename) { auto e = edge(h, mesh); auto opp = opposite(h, mesh); if(is_border_edge(opp, mesh)) { - edges.emplace_back(source(e, mesh), target(e, mesh)); + auto va = source(h, mesh); + auto vb = target(h, mesh); + edges.emplace_back(va, vb); + put(v_selected_map, va, true); + put(v_selected_map, vb, true); continue; } auto n = face(opp, mesh);