MCPcopy Create free account
hub / github.com/Kitware/VTK / ReadGeometryHeader

Method ReadGeometryHeader

IO/Parallel/vtkMultiBlockPLOT3DReader.cxx:3071–3094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3069}
3070
3071int 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
3096int vtkMultiBlockPLOT3DReader::ReadQHeader(
3097 FILE* fp, bool checkGrid, int& nq, int& nqc, int& overflow)

Callers 1

ReadMeshMethod · 0.95

Calls 3

SkipByteCountMethod · 0.95
ReadIntBlockMethod · 0.95

Tested by

no test coverage detected