X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FINTERP_KERNEL%2FTargetIntersector.txx;h=f9d55cdeeeab9a095fc6c0c86db11fb9264db020;hb=1b746b38f3cdeae6654a9501f37fde5e56e59288;hp=cd06df7b73b9d2da65a6a72b63b606ce02226c6b;hpb=e02c55efb49b195134ee7adebdaddf974654527a;p=tools%2Fmedcoupling.git diff --git a/src/INTERP_KERNEL/TargetIntersector.txx b/src/INTERP_KERNEL/TargetIntersector.txx index cd06df7b7..f9d55cdee 100644 --- a/src/INTERP_KERNEL/TargetIntersector.txx +++ b/src/INTERP_KERNEL/TargetIntersector.txx @@ -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 @@ -26,6 +26,12 @@ namespace INTERP_KERNEL { + template + void TargetIntersector::adjustBoundingBoxes(std::vector& 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 - void TargetIntersector::adjustBoundingBoxes(std::vector& bbox, double adjustmentEps, double adjustmentEpsAbs) + void TargetIntersector::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::max();