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

Derive center from boundingVolume of tiles #255

Merged
merged 3 commits into from
Jun 12, 2019
Merged

Derive center from boundingVolume of tiles #255

merged 3 commits into from
Jun 12, 2019

Conversation

xintongxia
Copy link

No description provided.

@xintongxia xintongxia requested a review from ibgreen June 11, 2019 21:06
@coveralls
Copy link

coveralls commented Jun 11, 2019

Coverage Status

Coverage increased (+0.1%) to 47.67% when pulling 30126bf on xx/viewstate into d7d265c on master.

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.

This looks good.

Nit: it gets a little busy in the createBoundingVolume method. We could add a separate function getTilesetViewState().

center = new Matrix4(transform).transformVector(center);
center = Ellipsoid.WGS84.cartesianToCartographic(center, center);

Object.assign(boundingVolumeHeader, {center});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am thinking we should avoid modifying the actual loaded data. We could store this on the tileset class root itself.

modules/3d-tiles/src/tileset/tile-3d-header.js Outdated Show resolved Hide resolved
@xintongxia xintongxia merged commit 677c529 into master Jun 12, 2019
@xintongxia xintongxia deleted the xx/viewstate branch June 12, 2019 00:16
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.

3 participants