From a192f8eea3fc27bef6c888ce2d67bb9c9f3d2b0d Mon Sep 17 00:00:00 2001 From: Corentin Prigent <115083621+corentin-prigent@users.noreply.github.com> Date: Fri, 21 Mar 2025 11:51:48 +0100 Subject: [PATCH] Revert "Solve issue when inserting a point along a non-manifold edge with 2 singular extremities" --- src/mmg3d/tools_3d.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mmg3d/tools_3d.c b/src/mmg3d/tools_3d.c index 45e20e2be..d535163d3 100644 --- a/src/mmg3d/tools_3d.c +++ b/src/mmg3d/tools_3d.c @@ -595,9 +595,7 @@ inline int MMG5_BezierNom(MMG5_pMesh mesh,MMG5_int ip0,MMG5_int ip1,double s,dou /* Coordinates of the new tangent and normal */ if ( MG_SIN(p0->tag) && MG_SIN(p1->tag) ) { // function should not be used in that case memcpy(to,t0,3*sizeof(double)); - /* returning 1 here may create memory error afterward because no (that - * is not filled) will be used */ - return 0; + return 1; } else if ( MG_SIN(p0->tag) ) { memcpy(n1,&(mesh->xpoint[p1->xp].n1[0]),3*sizeof(double));