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

Cesium3DTileSet should expose overall bounding volume #3138

Closed
mramato opened this issue Oct 28, 2015 · 1 comment
Closed

Cesium3DTileSet should expose overall bounding volume #3138

mramato opened this issue Oct 28, 2015 · 1 comment

Comments

@mramato
Copy link
Contributor

mramato commented Oct 28, 2015

I wanted to fly the camera to a 3DTileSet, but there doesn't seem a way to get it's bounding volume. I ended up with the below code (not sure if it's correct). A properly like tileset.boundingVolume would probably be ideal.

var bb = tileset._root._tileBoundingBox;
var bs = BoundingSphere.fromCornerPoints(bb.northeastCornerCartesian, bb.southwestCornerCartesian);
return camera.flyToBoundingSphere(bs);
@lilleyse
Copy link
Contributor

@JoshuaStorm Would you like to take a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants