pub enum TMFImportError {
IO(Error),
CompressionTypeUnknown(u8),
NoMeshes,
TooManyMeshes,
NotTMFFile,
NewerVersionRequired,
SegmentTooLong,
InvalidPrecision(u8),
UnsuportedCompressionType(u8),
}Expand description
An enum describing an error that occurred during loading a TMF mesh.
Variants§
IO(Error)
tmf data couldn’t be read, because an IO error occurred.
CompressionTypeUnknown(u8)
A segment uses an unknown compression type, which is invalid for the minimum TMF version specified by file header.
NoMeshes
A method returning one mesh was called, but TMF file had no meshes present.
TooManyMeshes
A method returning one mesh was called, but more than one mesh was present.
NotTMFFile
Provided file was not a TMF file.
NewerVersionRequired
File was created with a TMF version newer than supported by this reader, and can’t be read properly.
SegmentTooLong
A file segment exceeded the maximum length(2GB) was encountered. This segments length is highly unusual, and the segment unlikely to be valid. The segment was not read to prevent memory-related issues.
InvalidPrecision(u8)
Specified precision of saved data is too high (over 64 bits) and is invalid.
UnsuportedCompressionType(u8)
This compression type is not supported in this particular context