29 #ifndef NEMOSYS_FETRANSFER_H_ 30 #define NEMOSYS_FETRANSFER_H_ 32 #include "nemosys_export.h" 35 #include <vtkDoubleArray.h> 36 #include <vtkGenericCell.h> 42 ~FETransfer()
override { std::cout <<
"FETransfer destroyed" << std::endl; }
72 const std::vector<std::string> &newnames =
73 std::vector<std::string>())
override;
76 vtkSmartPointer<vtkGenericCell> containingCell,
77 std::vector<vtkSmartPointer<vtkDoubleArray>> &dasSource,
78 std::vector<vtkSmartPointer<vtkDoubleArray>> &dasTarget,
98 const std::vector<std::string> &newnames =
99 std::vector<std::string>())
override;
102 int i, vtkSmartPointer<vtkGenericCell> genCell,
103 std::vector<vtkSmartPointer<vtkDoubleArray>> &dasSourceToPoint,
104 std::vector<vtkSmartPointer<vtkDoubleArray>> &dasTarget);
109 int run(
const std::vector<std::string> &newnames =
110 std::vector<std::string>())
override;
116 void getClosestSourceCell(
double x[3],
bool flip, vtkIdType &
id,
117 vtkSmartPointer<vtkGenericCell> closestCell,
118 double closestPoint[3],
int &subId,
119 double &minDist2,
double *&weights);
122 #endif // NEMOSYS_FETRANSFER_H_
virtual int transferCellData(const std::vector< int > &arrayIDs, const std::vector< std::string > &newnames=std::vector< std::string >())=0
Transfer cell data with given ids from source to target.
A brief description of meshBase.
static FETransfer * Create(meshBase *source, meshBase *target)
virtual int run(const std::vector< std::string > &newnames=std::vector< std::string >())=0
Transfer all fields.
virtual int transferPointData(const std::vector< int > &arrayIDs, const std::vector< std::string > &newnames=std::vector< std::string >())=0
Transfer point data with given ids from source to target.
static std::shared_ptr< FETransfer > CreateShared(meshBase *source, meshBase *target)