29 #ifndef NEMOSYS_TRANSFERBASE_H_ 30 #define NEMOSYS_TRANSFERBASE_H_ 32 #include "nemosys_export.h" 35 #include <vtkStaticCellLocator.h> 36 #include <vtkStaticPointLocator.h> 45 c2cTrnsDistTol(1.e-6) {
46 std::cout <<
"TransferBase constructed" << std::endl;
50 std::cout <<
"TransferBase destroyed" << std::endl;
60 virtual int transferPointData(
const std::vector<int> &arrayIDs,
61 const std::vector<std::string> &newnames =
62 std::vector<std::string>()) = 0;
69 virtual int transferCellData(
const std::vector<int> &arrayIDs,
70 const std::vector<std::string> &newnames =
71 std::vector<std::string>()) = 0;
78 int transferPointData(
79 const std::vector<std::string> &arrayNames,
80 const std::vector<std::string> &newnames = std::vector<std::string>());
89 const std::vector<std::string> &arrayNames,
90 const std::vector<std::string> &newnames = std::vector<std::string>());
97 virtual int run(
const std::vector<std::string> &newnames =
98 std::vector<std::string>()) = 0;
108 vtkSmartPointer<vtkStaticCellLocator> srcCellLocator =
nullptr;
109 vtkSmartPointer<vtkStaticCellLocator> trgCellLocator =
nullptr;
111 vtkSmartPointer<vtkStaticPointLocator> srcPointLocator =
nullptr;
112 vtkSmartPointer<vtkStaticPointLocator> trgPointLocator =
nullptr;
123 std::vector<int> getArrayIDs(
const std::vector<std::string> &arrayNames,
124 vtkFieldData *fieldData);
132 int getDataArrayIndex(
const std::string &arrayName, vtkFieldData *
data);
135 #endif // NEMOSYS_TRANSFERBASE_H_
data_type data
Edge/face with sorted point ids (a, b, c, ...) is located at some index i in data[b], with data[b][i].first == [a, c] (for edges, third point id treated as -1).
A brief description of meshBase.
void setCheckQual(bool x)