forked from InsightSoftwareConsortium/ITK
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: VTKPolyDataMeshIO should not hang on inf and NaN in ASCII .vtk file
`MeshFileReader`/`VTKPolyDataMeshIO` did hang forever when trying to read an ASCII .vtk file that contained non-numeric chars in "POINTS" section, for example "Infinity" or "NaN". With this commit, "inf" and "Infinity" will be interpreted as the floating point value infinity, while "nan" and "NaN" will be interpreted as Not-A-Number. Other strings of non-numeric characters in the list of point components (coordinates) will cause the reader to throw an appropriate `itk::ExceptionObject`. Addresses issue InsightSoftwareConsortium#3539 "MeshFileReader/VTKPolyDataMeshIO hangs forever on non-numeric chars in "POINTS" section (including "Infinity" and "NaN")"
- Loading branch information
1 parent
42f4530
commit 156c88e
Showing
2 changed files
with
105 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters