Hi,
I am using right now the library of MMG2D, and I am sometimes getting with the API the Ids of edges equal to 0, but if I understood correctly the Ids start in 1. not 0.
My code is basically:
int edge0, edge1, isRidge;
if (MMG2D_Get_edge(mmgMesh, &edge0, &edge1, &prop_id, &isRidge, &isRequired) != 1 )
{
exit(EXIT_FAILURE);
}
To solve the problem I am using the following tricky thing (which will give problems in the future for sure):
if (edge0 == 0) edge0 = mmgMesh->np;
if (edge1 == 0) edge1 = mmgMesh->np;
I am reporting because maybe is a bug, or maybe I am doing something wrong.
Best regards