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

Method ReadMesh

Common/ExecutionModel/vtkSimpleReader.cxx:158–181  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

156
157//------------------------------------------------------------------------------
158int vtkSimpleReader::ReadMesh(int piece, int, int, int timestep, vtkDataObject* output)
159{
160 // Not a parallel reader. Cannot handle anything other than the first piece,
161 // which will have everything.
162 if (piece > 0)
163 {
164 return 1;
165 }
166
167 int nTimes = static_cast<int>(this->Internal->FileNames.size());
168 if (timestep >= nTimes)
169 {
170 vtkErrorMacro(
171 "Cannot read time step " << timestep << ". Only " << nTimes << " time steps are available.");
172 return 0;
173 }
174
175 if (this->ReadMeshSimple(this->Internal->FileNames[timestep], output))
176 {
177 this->CurrentFileIndex = timestep;
178 return 1;
179 }
180 return 0;
181}
182
183//------------------------------------------------------------------------------
184int vtkSimpleReader::ReadPoints(int piece, int, int, int timestep, vtkDataObject* output)

Callers 1

ProcessRequestMethod · 0.45

Calls 2

sizeMethod · 0.45
ReadMeshSimpleMethod · 0.45

Tested by

no test coverage detected