------------------------------------------------------------------------------
| 372 | |
| 373 | //------------------------------------------------------------------------------ |
| 374 | int 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 | //------------------------------------------------------------------------------ |
| 398 | int vtkMNIObjectReader::ReadNumberOfCells(vtkIdType* numCells) |
| 399 | { |
no test coverage detected