asmaloney / libE57Format

Library for reading & writing the E57 file format
Boost Software License 1.0
136 stars 65 forks source link

Files generated with version 3.2.0 fail to load in various applications #309

Open dgirardeau opened 2 days ago

dgirardeau commented 2 days ago

Hi,

Some CloudCompare users have reported that the files saved with version 3.2.0 of libE57Format won't open with Rhino8, SolidWorks 2023 and FARO Scene. Reverting to version 3.1.1 seems to fix the issue.

It seems to be related to this commit: feaa963f704ab5b677ad8978c4f9a42f0ceb145d (I've generated files with version 3.2.0 with only this commit reverted, and it seems to work fine). Even though it seems to be 'required by the standard', I guess these SW solutions are not able to handle the single CV index packet properly?

Maybe a solution would be to add a boolean somewhere to control whether this CV index packet should be automatically added or not? (with a default state to true)

@dancergraham I've attached a file that fails to load with the above applications. pumpsA_3.2.0.e57.zip

dancergraham commented 1 day ago

the rust e57 library seems to skip over index packets - I can read this file successfully with my e57 python library https://github.com/cry-inc/e57/blob/bdb8fa9015b1e87d5c600860c51002e25cb95c7d/src/queue_reader.rs#L80