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

fix(3d-tiles): Rewrite of parseImplicitTiles for readability #3086

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

olsen232
Copy link
Contributor

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.

Copy link
Collaborator

@belom88 belom88 left a 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.

Copy link
Collaborator

@ibgreen ibgreen left a 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:

];
let childMinimumHeight: number;
let childMaximumHeight: number;
if (subdivisionScheme === 'OCTREE') {
Copy link
Collaborator

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.

@belom88
Copy link
Collaborator

belom88 commented Sep 16, 2024

Tested on a dataset with quadtree implicit tiles (CDB_Yemen_elevation)

@belom88 belom88 changed the title Rewrite of parseImplicitTiles for readability... fix(3d-tiles): Rewrite of parseImplicitTiles for readability Sep 16, 2024
@belom88 belom88 merged commit e97016c into visgl:master Sep 16, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

3D Tiles - implicit tiling calculates wrong tile extent
3 participants