You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently a PlyReader 'reads' ElementReaders with read Elements. While this makes sense its not very elegant.
I like the way ZipInputStream handles the same situation (a zip file contains mutliple zipped files).
This could look like this:
PlyReader.getNextElementType()
will advance the internal pointer to the first element of the next type. Those can then be read with
PlyReader.readElement()
which will return null at the end of the type even if the end of the file has not yet been reached.
This would avoid the ElementReaders and the problematic that they need to be closed first. One file represents one stream and one stream should only be represented by one class.
The text was updated successfully, but these errors were encountered:
Currently a PlyReader 'reads' ElementReaders with read Elements. While this makes sense its not very elegant.
I like the way ZipInputStream handles the same situation (a zip file contains mutliple zipped files).
This could look like this:
will advance the internal pointer to the first element of the next type. Those can then be read with
which will return null at the end of the type even if the end of the file has not yet been reached.
This would avoid the
ElementReader
s and the problematic that they need to be closed first. One file represents one stream and one stream should only be represented by one class.The text was updated successfully, but these errors were encountered: