From 52d9d9463888d11b0479014a2ae349700bcceed1 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 10 Jan 2005 02:10:59 +0000
Subject: [PATCH] bug large lc

---
 Mesh/2D_Mesh.cpp                       |  3 +--
 benchmarks/bugs/bug_single_element.geo | 17 +++++++++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)
 create mode 100644 benchmarks/bugs/bug_single_element.geo

diff --git a/Mesh/2D_Mesh.cpp b/Mesh/2D_Mesh.cpp
index 369fba5977..4d5c93c1b1 100644
--- a/Mesh/2D_Mesh.cpp
+++ b/Mesh/2D_Mesh.cpp
@@ -1,4 +1,4 @@
-// $Id: 2D_Mesh.cpp,v 1.71 2005-01-08 20:15:12 geuzaine Exp $
+// $Id: 2D_Mesh.cpp,v 1.72 2005-01-10 02:10:59 geuzaine Exp $
 //
 // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
 //
@@ -325,7 +325,6 @@ int mesh_domain(ContourPeek * ListContours, int numcontours,
       List_Add(del_L, &del_P);
   }
   doc->numTriangles = List_Nbr(del_L);
-
   verify_edges(del_L, ListContours, numcontours);
   verify_inside(doc->delaunay, doc->numTriangles);
 
diff --git a/benchmarks/bugs/bug_single_element.geo b/benchmarks/bugs/bug_single_element.geo
new file mode 100644
index 0000000000..0358cd0707
--- /dev/null
+++ b/benchmarks/bugs/bug_single_element.geo
@@ -0,0 +1,17 @@
+
+// the old 2D algo chokes on this:
+
+Point(1) = {0, 0, 24.5, 90};
+Point(3) = {0, 24.5, 0, 90};
+Point(5) = {0, 0, 0, 90};
+Point(7) = {100, 42.5, 17.5, 90};
+
+Circle (1) = {1, 5, 3}; // this is bad
+// Line (1) = {1, 3}; // this is OK
+Line (9) = {1, 7};
+Line (11) = {3, 7};
+
+Line Loop (1) = {9, -11, -1}; // this is bad
+// Line Loop (1000030) = {-11, -1, 9}; // this is OK
+
+Ruled Surface (2) = {1};
-- 
GitLab