Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting Generic Twin results in different binary encodings cross-platform #114

Open
brlcad opened this issue Feb 9, 2024 · 0 comments

Comments

@brlcad
Copy link
Member

brlcad commented Feb 9, 2024

There appears to be some subtle byte differences being written out into the geometry files during conversion, possibly from the fast4-g converter or perhaps from some librt processing/serialization difference. The files are byte-size identical. They differ in specific bytes. This difference is not expected nor typically observed during conversions.

Looking at hex dumps of two files, we find there are precisely 59 byte differences that are 1-3 values apart. This is possible indication the difference resides in the mantissa of certain floating point numbers that are differing by 1-3 ULP.

Examples of the two conversions and the corresponding hex dumps (via xxd) attached.
GenericTwin.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant