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

precision of VertexData::height #17

Closed
pasu opened this issue Jan 9, 2023 · 1 comment
Closed

precision of VertexData::height #17

pasu opened this issue Jan 9, 2023 · 1 comment

Comments

@pasu
Copy link

pasu commented Jan 9, 2023

if the type of height is unsigned short, we should use [0, 65,535] instead of [0, 32767]. I guess we choose 32767 due to compatibility issues. Thank you for the explanation.

@pasu
Copy link
Author

pasu commented Jan 9, 2023

I think I find the reason, the value before zigzag is short because it is possible to be negative, after the zigzag, it is unsigned short, so, the maxShort is 32767.

@pasu pasu closed this as completed Jan 9, 2023
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