Salome HOME
Merge branch 'V9_9_BR'
[modules/smesh.git] / src / Tools / MeshCut / MeshCut_Fonctions.cxx
index 28ca3dc56bcbf9b3ab7c9e69a132e38b288b8be0..e9dcffb5056510f3614de0cd05fb822d11db554e 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2006-2012  EDF R&D
+// Copyright (C) 2006-2022  EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -84,12 +84,12 @@ int MESHCUT::positionNoeudPlan(int indiceNoeud)
 int MESHCUT::intersectionSegmentPlan(int it4, int na)
 {
 
-  int ngA, ngB; // Numéros des noeuds extrémités AB
+  int ngA = -1, ngB = -1; // Numéros des noeuds extrémités AB
   float lambda, ps; //, ab; // ab = longueur AB
   float A[3], B[3];
 
   // Détermination des ng des extrémités de l'arête passée en argument na
-  int * offset = MAILLAGE1->CNX[TETRA4] + 4 * it4;
+  med_int * offset = MAILLAGE1->CNX[TETRA4] + 4 * it4;
   if (na == 0)
     {
       ngA = *(offset + 0);