X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2FMeshCut%2FMeshCut_Fonctions.cxx;h=7b1f9724e834ab646c70636da25f583b3031bd72;hb=3f80bd10608d0dfcc296dad35cabbcf0705b7af4;hp=3b96e550559fc4f66aacffdcaf4d66cfbbbf5a3e;hpb=6bac08c1a81f34d3f21c550bd92f83654b2546a5;p=modules%2Fsmesh.git diff --git a/src/Tools/MeshCut/MeshCut_Fonctions.cxx b/src/Tools/MeshCut/MeshCut_Fonctions.cxx index 3b96e5505..7b1f9724e 100644 --- a/src/Tools/MeshCut/MeshCut_Fonctions.cxx +++ b/src/Tools/MeshCut/MeshCut_Fonctions.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2006-2015 EDF R&D +// Copyright (C) 2006-2021 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 @@ -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);