| 3069 | } |
| 3070 | |
| 3071 | int vtkMultiBlockPLOT3DReader::ReadGeometryHeader(FILE* fp) |
| 3072 | { |
| 3073 | int numGrid = this->GetNumberOfBlocksInternal(fp, 1); |
| 3074 | int i; |
| 3075 | vtkDebugMacro("Geometry number of grids: " << numGrid); |
| 3076 | if (numGrid == 0) |
| 3077 | { |
| 3078 | return VTK_ERROR; |
| 3079 | } |
| 3080 | |
| 3081 | // Read and set extents of all blocks. |
| 3082 | this->SkipByteCount(fp); |
| 3083 | for (i = 0; i < numGrid; i++) |
| 3084 | { |
| 3085 | int n[3]; |
| 3086 | n[2] = 1; |
| 3087 | this->ReadIntBlock(fp, this->Internal->Settings.NumberOfDimensions, n); |
| 3088 | vtkDebugMacro("Geometry, block " << i << " dimensions: " << n[0] << " " << n[1] << " " << n[2]); |
| 3089 | memcpy(this->Internal->Dimensions[i].Values, n, 3 * sizeof(int)); |
| 3090 | } |
| 3091 | this->SkipByteCount(fp); |
| 3092 | |
| 3093 | return VTK_OK; |
| 3094 | } |
| 3095 | |
| 3096 | int vtkMultiBlockPLOT3DReader::ReadQHeader( |
| 3097 | FILE* fp, bool checkGrid, int& nq, int& nqc, int& overflow) |
no test coverage detected