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