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

Method ReadNumberOfPoints

IO/MINC/vtkMNIObjectReader.cxx:374–396  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

372
373//------------------------------------------------------------------------------
374int vtkMNIObjectReader::ReadNumberOfPoints(vtkIdType* numPoints)
375{
376 int status = this->ParseIdValue(numPoints);
377
378 if (status != 0)
379 {
380 if (*numPoints < 0)
381 {
382 // Don't support "compressed" data yet
383 vtkErrorMacro("Bad number of points -> " << *numPoints << " " << this->FileName << ":"
384 << this->LineNumber);
385 status = 0;
386 }
387 else if (*numPoints > VTK_ID_MAX / 4)
388 {
389 vtkErrorMacro(
390 "Too many points -> " << *numPoints << " " << this->FileName << ":" << this->LineNumber);
391 status = 0;
392 }
393 }
394
395 return status;
396}
397//------------------------------------------------------------------------------
398int vtkMNIObjectReader::ReadNumberOfCells(vtkIdType* numCells)
399{

Callers 2

ReadPolygonObjectMethod · 0.95
ReadLineObjectMethod · 0.95

Calls 1

ParseIdValueMethod · 0.95

Tested by

no test coverage detected