Skip to content

Commit

Permalink
Assert message [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Algiane committed Dec 12, 2022
1 parent 9a1ee13 commit 23e7c00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mmg3d/bezier_3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ int MMG5_mmg3dBezierCP(MMG5_pMesh mesh,MMG5_Tria *pt,MMG5_pBezier pb,int8_t ori)
* projections may fail but I think that it is not a normal behaviour:
* it means that the surface approximation has degenerated. See issue #167
*/
assert ( ps > 0. || ps2 > 0. && "Unexpected case");
assert ( ps > 0. || ps2 > 0. &&
"Negative projection of normal at tria onto normal at point: surface degeneracy");

/* As previous assert may fail in some cases, deal with both cases */
if ( (ps > 0.) || (ps2 >0.) ) {
Expand Down

0 comments on commit 23e7c00

Please sign in to comment.