| 174 | //------------------------------------------------------------------------------ |
| 175 | template <bool PointIdRedirection> |
| 176 | void ComputeNormal(vtkPoints* p, int numPts, const vtkIdType* pts, double* n) |
| 177 | { |
| 178 | using Dispatcher = vtkArrayDispatch::DispatchByArray<vtkArrayDispatch::PointArrays>; |
| 179 | ::NormalWorker<PointIdRedirection> worker; |
| 180 | if (!Dispatcher::Execute(p->GetData(), worker, numPts, pts, n)) |
| 181 | { |
| 182 | worker(p->GetData(), numPts, pts, n); |
| 183 | } |
| 184 | } |
| 185 | } // anonymous namespace |
| 186 | |
| 187 | //------------------------------------------------------------------------------ |
no test coverage detected