------------------------------------------------------------------------------ Constructs a uniform grid instance given the prescribed origin, grid spacing and dimensions.
| 111 | // Constructs a uniform grid instance given the prescribed |
| 112 | // origin, grid spacing and dimensions. |
| 113 | vtkUniformGrid* GetGrid(double* origin, double* h, int* ndim) |
| 114 | { |
| 115 | vtkNew<vtkUniformGrid> grd; |
| 116 | grd->Initialize(); |
| 117 | grd->SetOrigin(origin); |
| 118 | grd->SetSpacing(h); |
| 119 | grd->SetDimensions(ndim); |
| 120 | return grd; |
| 121 | } |
| 122 | |
| 123 | //------------------------------------------------------------------------------ |
| 124 | // Computes the cell center for the cell corresponding to cellIdx w.r.t. |
no test coverage detected