X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FINTERP_KERNEL%2FUnitTetraIntersectionBary.cxx;h=3494350a73115a5c6fdc87cee95ade63a4ab76d6;hb=1b746b38f3cdeae6654a9501f37fde5e56e59288;hp=e84d1b87829840e8f59a7f622ade8c82f2c1c444;hpb=79386ac5c73f8365c428b8ef595c4ef004959667;p=tools%2Fmedcoupling.git diff --git a/src/INTERP_KERNEL/UnitTetraIntersectionBary.cxx b/src/INTERP_KERNEL/UnitTetraIntersectionBary.cxx index e84d1b878..3494350a7 100644 --- a/src/INTERP_KERNEL/UnitTetraIntersectionBary.cxx +++ b/src/INTERP_KERNEL/UnitTetraIntersectionBary.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D +// Copyright (C) 2007-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -35,7 +35,7 @@ namespace INTERP_KERNEL { - enum { _X=0, _Y, _Z }; + enum { _XX=0, _YY, _ZZ }; inline bool samePoint( const double* p1, const double* p2 ) { @@ -86,7 +86,7 @@ namespace INTERP_KERNEL const std::vector * pPolygonA = &triangle.getPolygonA(); if ( pPolygonA->size() < 3 ) { - if ( !epsilonEqual( triNormal[_Z], 0 )) + if ( !epsilonEqual( triNormal[_ZZ], 0 )) return; // not vertical triangle does not intersect the unit tetra // Vertical triangle. Use inherited methods of TransformedTriangle to @@ -378,8 +378,8 @@ namespace INTERP_KERNEL } // check if the segment p1-p2 is on the inclined side if ( sideFaces[3] && - epsilonEqual( p1[_X] + p1[_Y] + p1[_Z], 1.0 ) && - epsilonEqual( p2[_X] + p2[_Y] + p2[_Z], 1.0 )) + epsilonEqual( p1[_XX] + p1[_YY] + p1[_ZZ], 1.0 ) && + epsilonEqual( p2[_XX] + p2[_YY] + p2[_ZZ], 1.0 )) { sideFaces[3]->push_back( new double[3] ); copyVector3( p1, sideFaces[3]->back() );