Repository navigation
Conversation
…bounds
In a geospatial viewport, getCullBounds returns longitude and latitude.
isTileVisible compared these with {left, top, right, bottom} tile boxes
from a custom tileset, which can be in projected meters. No tile
overlapped, so picking found no tiles. Skip the cull check for such a
tile. A non-geospatial viewport still culls these boxes.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR and #11286 (tile preload) both edit
tileset-2d.tsandtile-2d-view.ts, in different code.Note
Low Risk
Low-risk targeted bug fix that prevents false culling for custom projected tilesets in geospatial viewports.
Overview
Prevents tiles with non-geographic bounding boxes (such as projected coordinates in meters) from being erroneously culled when viewed in a geospatial viewport.
Adds a
canCullTileBoundingBoxhelper and checks it in bothTile2DViewandTileset2D'sisTileVisiblemethods, bypassing bounding box culling whenever tile box units and viewport cull bounds are incompatible.Reviewed by Cursor Bugbot for commit 3d8f528. Bugbot is set up for automated code reviews on this repo. Configure here.