Les points pointent maintenant sur leur propre structure Agglo après repereAgglo().

This commit is contained in:
Xysto 2017-01-26 19:29:58 +01:00
parent 9cfeb7ced2
commit 12ae649a60

@ -209,6 +209,14 @@ ErrEnum repereAgglo(Point* points, uint32_t tailleP, Agglomerat** agglos, uint32
free(agglosTmp[i]);
}
free(agglosTmp);
for(uint32_t j = 0; j < *tailleA; ++j)
{
for(uint32_t k = 0; k < (*agglos)[j].nbPts; ++k)
{
(*agglos)[j].agglo[k]->ptOnStructure = (*agglos)+j;
}
}
return SUCCESS;
}