-// Copyright (C) 2007-2020 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
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);
};
}