Salome HOME
Implementation of MEDCoupling1SGTUMesh.computeTriangleHeight and DataArrayDouble...
[tools/medcoupling.git] / src / INTERP_KERNEL / TargetIntersector.hxx
index aefeed0b596a83ca3e1e8214db45e9b78b8e538d..c0613c7de88a7af978a945fe7e2165e01dc43d8d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2022  CEA/DEN, 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
@@ -36,19 +36,23 @@ namespace INTERP_KERNEL
   class TargetIntersector
   {
   public:
+    static const int SPACEDIM=MyMeshType::MY_SPACEDIM;
     typedef typename MyMeshType::MyConnType ConnType;
   public:
     /*!
      * Tool for cell intersection, result is always positive.
-     * @param icellT id of cell in target mesh in \b C \b mode.
-     * @param icellsS ids of cells in source mesh in \b C \b mode.
+     * @param targetCell id of cell in target mesh in \b C \b mode.
+     * @param srcCells ids of cells in source mesh in \b C \b mode.
      * @param res is an IN/OUT parameter that represents the icellTth row in final matrix, fed with at most icellsS elements. 
      */
     virtual void intersectCells(ConnType targetCell, const std::vector<ConnType>& srcCells, MyMatrix& res) = 0;
 
     virtual ConnType getNumberOfRowsOfResMatrix() const = 0;
     virtual ConnType getNumberOfColsOfResMatrix() const = 0;
+
     virtual ~TargetIntersector() { }
+    void adjustBoundingBoxes(std::vector<double>& bbox, double adjustmentEps, double adjustmentEpsAbs);
+    void adjustBoundingBoxes(double *bbox, std::size_t sz, double adjustmentEps, double adjustmentEpsAbs);
   };
 }