Commit 44d60c0c authored by Célestin Marot's avatar Célestin Marot
Browse files

void SPRinit

parent 788c2cff
......@@ -948,7 +948,7 @@ static inline void new_tetrahedralization(SPRCavity* SPR, SPRStep* step)
/***************************
* Initialization
***************************/
static inline int SPR_init(SPRCavity* SPR)
static inline void SPR_init(SPRCavity* SPR)
{
assert(SPR->points.num <= SPR_MAX_PTS);
assert(SPR->edges.num <= SPR_MAX_EDGES);
......@@ -1006,7 +1006,6 @@ static inline int SPR_init(SPRCavity* SPR)
SPR->points.array[i].is_interior = 0;
}
}
return 0;
}
......@@ -1032,8 +1031,7 @@ static inline int SPR_init(SPRCavity* SPR)
\*|=======================================================|*/
int hxtSPR(SPRCavity* SPR)
{
if(SPR_init(SPR))
return 2;
SPR_init(SPR);
SPR->steps.num = 0;
SPRStep* step = &SPR->steps.array[0];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment