Salome HOME
[TetraIntersect] Avoid multiple divisions in calculatePolygonBarycenter
[tools/medcoupling.git] / src / INTERP_KERNEL / CurveIntersector.txx
index 64f19b1b7103f5c25703b4def4849658ae5b8cb1..2864e7f8f8e1ab639c355c4bc4b27066fec4dbbf 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2021  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
@@ -150,26 +150,6 @@ namespace INTERP_KERNEL
     startPos = std::max(startPos,0.); startPos = std::min(startPos,1.);
     endPos=1.-startPos; 
   }
-  
-  /*! Readjusts a set of bounding boxes so that they are extended
-    in all dimensions for avoiding missing interesting intersections
-
-    \param bbox vector containing the bounding boxes
-  */
-  template<class MyMeshType, class MyMatrix>
-  void CurveIntersector<MyMeshType,MyMatrix>::adjustBoundingBoxes (std::vector<double>& bbox,
-                                                                   double adjustmentEpsAbs)
-  {
-    std::size_t size = bbox.size()/(2*SPACEDIM);
-    for (std::size_t i=0; i<size; i++)
-      {
-        for(int idim=0; idim<SPACEDIM; idim++)
-          {
-            bbox[i*2*SPACEDIM+2*idim  ] -= adjustmentEpsAbs;
-            bbox[i*2*SPACEDIM+2*idim+1] += adjustmentEpsAbs;
-          }
-      }
-  }
 
   /*!
    * @param icellT id in target mesh in format of MyMeshType.