| 88 | } |
| 89 | |
| 90 | void BuildVTKDataStructures(vtkCPInputDataDescription* idd, unsigned int numberOfPoints, |
| 91 | double* points, double* velocity, unsigned int numberOfCells, unsigned int* cells, |
| 92 | float* pressure) |
| 93 | { |
| 94 | if (VTKGrid == nullptr) |
| 95 | { |
| 96 | // The grid structure isn't changing so we only build it |
| 97 | // the first time it's needed. If we needed the memory |
| 98 | // we could delete it and rebuild as necessary. |
| 99 | VTKGrid = vtkSmartPointer<vtkUnstructuredGrid>::New(); |
| 100 | BuildVTKGrid(numberOfPoints, points, numberOfCells, cells); |
| 101 | } |
| 102 | UpdateVTKAttributes(idd, numberOfPoints, velocity, numberOfCells, pressure); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | void CatalystCoProcess(unsigned int numberOfPoints, double* pointsData, unsigned int numberOfCells, |
no test coverage detected