Read the header and return the number of grids.
| 3049 | |
| 3050 | // Read the header and return the number of grids. |
| 3051 | int vtkMultiBlockPLOT3DReader::GetNumberOfBlocksInternal(FILE* xyzFp, int vtkNotUsed(allocate)) |
| 3052 | { |
| 3053 | int numGrid = 0; |
| 3054 | |
| 3055 | if (this->Internal->Settings.MultiGrid) |
| 3056 | { |
| 3057 | this->SkipByteCount(xyzFp); |
| 3058 | this->ReadIntBlock(xyzFp, 1, &numGrid); |
| 3059 | this->SkipByteCount(xyzFp); |
| 3060 | } |
| 3061 | else |
| 3062 | { |
| 3063 | numGrid = 1; |
| 3064 | } |
| 3065 | |
| 3066 | this->Internal->Dimensions.resize(numGrid); |
| 3067 | |
| 3068 | return numGrid; |
| 3069 | } |
| 3070 | |
| 3071 | int vtkMultiBlockPLOT3DReader::ReadGeometryHeader(FILE* fp) |
| 3072 | { |
no test coverage detected