| 111 | } |
| 112 | |
| 113 | std::vector<double> GetEdgeAttributes(const std::string& name, vtkCellData* cd, vtkIdType cellId) |
| 114 | { |
| 115 | std::vector<double> attrs; |
| 116 | vtkDataArray* coeffs = cd->GetArray(::GetEdgeCoefficientArrayName(name).c_str()); |
| 117 | if (coeffs == nullptr) |
| 118 | { |
| 119 | return attrs; |
| 120 | } |
| 121 | const int nEdges = coeffs->GetNumberOfComponents(); |
| 122 | attrs.resize(nEdges); |
| 123 | coeffs->GetTuple(cellId, attrs.data()); |
| 124 | return attrs; |
| 125 | } |
| 126 | |
| 127 | std::vector<double> GetFaceAttributes(const std::string& name, vtkCellData* cd, vtkIdType cellId) |
| 128 | { |
no test coverage detected