Accurate Bounding Box for 3D tiles

1. A concise explanation of the problem you’re experiencing.

The boundingsphere for a 3D tiles model is far larger than the actual boundaries the tiles live in. Need an accurate rectangle bounding box.

2. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I’m trying to create a minimap with the orthophoto of the model. I need to give the image overlay the correct bounds.

3. The Cesium version you’re using, your operating system and browser.

latest, Windows 10, latest Chrome

Is this possible? I created a rectangle from the boundingsphere radius, but it was way way larger than the actual space taken up…

Is there anyway to go about calculating this information?

What is the bounding volume type used in your tileset.json? If they are regions you can get the rectangle with tile.contentBoundingVolume.rectangle. If they are boxes you can get the OrientedBoundingBox through tile.contentBoundingVolume.boundingVolume and call Rectangle.fromCartesianArray on its corners.

Let me know if either approach works for you.