------------------------------------------------------------------------------ TODO: Use implicit array to optimize memory
| 67 | //------------------------------------------------------------------------------ |
| 68 | // TODO: Use implicit array to optimize memory |
| 69 | void ReverseDoubleArray(vtkDoubleArray* arr) |
| 70 | { |
| 71 | vtkNew<vtkDoubleArray> tmp; |
| 72 | tmp->DeepCopy(arr); |
| 73 | for (int i = 0; i < arr->GetNumberOfTuples(); i++) |
| 74 | { |
| 75 | double value = tmp->GetTuple1(i); |
| 76 | arr->SetTuple1(arr->GetNumberOfTuples() - i - 1, -value); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | //------------------------------------------------------------------------------ |
| 81 | void SwapXYZCoordinates(vtkDoubleArray*& XCoordinate, vtkDoubleArray*& YCoordinate, |
no test coverage detected