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

better error message

parent 8cd5f7de
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,8 @@ static Segment UpperCommonTangent(DT vl, DT vr)
static int Qtest(PointNumero h, PointNumero i, PointNumero j, PointNumero 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;
}
......@@ -495,14 +496,14 @@ static int ConvertDListToTriangles(DocRecord *doc)
{
// on suppose que n >= 3. gPointArray est suppose OK.
Striangle *striangle;
STriangle *striangle;
int n, i, j;
int count = 0, count2 = 0;
PointNumero aa, bb, cc;
PointRecord *gPointArray = doc->points;
n = doc->numPoints;
striangle = (Striangle *) Malloc(n * sizeof(Striangle));
striangle = (STriangle *) Malloc(n * sizeof(STriangle));
count2 = CountPointsOnHull(n, doc->points);
// nombre de triangles que l'on doit obtenir
......
......@@ -28,13 +28,13 @@ struct _CDLIST{
typedef struct{
PointNumero search;
PointNumero already;
}demi_triangle;
}HalfTriangle;
typedef struct{
demi_triangle *info;
HalfTriangle *info;
PointNumero *t;
int t_length, info_length;
}Striangle;
}STriangle;
typedef struct{
PointNumero begin;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment