Salome HOME
Add test for .mesh file format
[tools/medcoupling.git] / src / INTERP_KERNEL / TargetIntersector.txx
index cd06df7b73b9d2da65a6a72b63b606ce02226c6b..f9d55cdeeeab9a095fc6c0c86db11fb9264db020 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2020  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
 
 namespace INTERP_KERNEL
 {
+  template<class MyMeshType, class MyMatrix>
+  void TargetIntersector<MyMeshType,MyMatrix>::adjustBoundingBoxes(std::vector<double>& bbox, double adjustmentEps, double adjustmentEpsAbs)
+  {
+    this->adjustBoundingBoxes(bbox.data(),bbox.size(),adjustmentEps,adjustmentEpsAbs);
+  }
+
   /*! Readjusts a set of bounding boxes so that they are extended
     in all dimensions for avoiding missing interesting intersections
 
@@ -34,9 +40,9 @@ namespace INTERP_KERNEL
     @param adjustmentEpsAbs absolute adjustment value (added on each side of the BBox in each dimension)
   */
   template<class MyMeshType, class MyMatrix>
-  void TargetIntersector<MyMeshType,MyMatrix>::adjustBoundingBoxes(std::vector<double>& bbox, double adjustmentEps, double adjustmentEpsAbs)
+  void TargetIntersector<MyMeshType,MyMatrix>::adjustBoundingBoxes(double *bbox, std::size_t sz, double adjustmentEps, double adjustmentEpsAbs)
   {
-    std::size_t size = bbox.size()/(2*SPACEDIM);
+    std::size_t size = sz/(2*SPACEDIM);
     for (std::size_t i=0; i<size; i++)
       {
         double max=- std::numeric_limits<double>::max();