-
Notifications
You must be signed in to change notification settings - Fork 193
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
fix(3d-tiles): Rewrite of parseImplicitTiles for readability #3086
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this fix @olsen232 .
Regarding #3085 (comment) : you can build code on linux or mac os. Use wsl on Windows. You have a ts error right now.
We will check this fix on the tile-converter.
fixes visgl#3085 Adds comments.
fc8adfd
to
7538b19
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@olsen232 Appreciate the contribution. the changes are fine from a high-level perspective, since they are localized inside existing function.
I will rely on @belom88 for the detailed review of the logic.
Do we have test cases for this? I think we need at least something to make sure future maintainers can catch regressions.
Not sure why our contributing page is not part of the official docs:
Line 4 in eb08437
]; | ||
let childMinimumHeight: number; | ||
let childMaximumHeight: number; | ||
if (subdivisionScheme === 'OCTREE') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: prefer a switch statement since this is not a boolean.
Tested on a dataset with quadtree implicit tiles (CDB_Yemen_elevation) |
Fixes #3085.
It's possible to fix that issue with smaller changes, but I believe I found and fixed some more bugs by rewriting it for clarity.
Adds comments.