Skip to content
Snippets Groups Projects
Commit 36597822 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

better error message

parent 8cd5f7de
Branches
Tags
No related merge requests found
...@@ -162,7 +162,8 @@ static Segment UpperCommonTangent(DT vl, DT vr) ...@@ -162,7 +162,8 @@ static Segment UpperCommonTangent(DT vl, DT vr)
static int Qtest(PointNumero h, PointNumero i, PointNumero j, PointNumero k) static int Qtest(PointNumero h, PointNumero i, PointNumero j, PointNumero k)
{ {
if((h == i) && (h == j) && (h == k)) { if((h == i) && (h == j) && (h == k)) {
Msg::Error("3 identical points in Qtest"); Msg::Error("Identical points in triangulation: increase element size "
"or Mesh.RandomFactor");
return 0; return 0;
} }
...@@ -495,14 +496,14 @@ static int ConvertDListToTriangles(DocRecord *doc) ...@@ -495,14 +496,14 @@ static int ConvertDListToTriangles(DocRecord *doc)
{ {
// on suppose que n >= 3. gPointArray est suppose OK. // on suppose que n >= 3. gPointArray est suppose OK.
Striangle *striangle; STriangle *striangle;
int n, i, j; int n, i, j;
int count = 0, count2 = 0; int count = 0, count2 = 0;
PointNumero aa, bb, cc; PointNumero aa, bb, cc;
PointRecord *gPointArray = doc->points; PointRecord *gPointArray = doc->points;
n = doc->numPoints; n = doc->numPoints;
striangle = (Striangle *) Malloc(n * sizeof(Striangle)); striangle = (STriangle *) Malloc(n * sizeof(STriangle));
count2 = CountPointsOnHull(n, doc->points); count2 = CountPointsOnHull(n, doc->points);
// nombre de triangles que l'on doit obtenir // nombre de triangles que l'on doit obtenir
......
...@@ -28,13 +28,13 @@ struct _CDLIST{ ...@@ -28,13 +28,13 @@ struct _CDLIST{
typedef struct{ typedef struct{
PointNumero search; PointNumero search;
PointNumero already; PointNumero already;
}demi_triangle; }HalfTriangle;
typedef struct{ typedef struct{
demi_triangle *info; HalfTriangle *info;
PointNumero *t; PointNumero *t;
int t_length, info_length; int t_length, info_length;
}Striangle; }STriangle;
typedef struct{ typedef struct{
PointNumero begin; PointNumero begin;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment