| 93 | } |
| 94 | |
| 95 | void BuildVTKDataStructures(Grid& grid, Attributes& attributes, vtkCPInputDataDescription* idd) |
| 96 | { |
| 97 | if (VTKGrid == nullptr) |
| 98 | { |
| 99 | // The grid structure isn't changing so we only build it |
| 100 | // the first time it's needed. If we needed the memory |
| 101 | // we could delete it and rebuild as necessary. |
| 102 | VTKGrid = vtkUnstructuredGrid::New(); |
| 103 | BuildVTKGrid(grid); |
| 104 | } |
| 105 | UpdateVTKAttributes(grid, attributes, idd); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | namespace FEAdaptor |
no test coverage detected