CesiumGS / obj2gltf

Convert OBJ assets to glTF
Apache License 2.0
1.71k stars 307 forks source link

how to get MBR of one gltf file / obj file? #20

Closed liyihongcug closed 7 years ago

liyihongcug commented 8 years ago

how to get MBR of one gltf file / obj file?( gltf's coordinate are relative)

pjcozzi commented 7 years ago

@liyihongcug I'm not completely following. What is the MBR?

lilleyse commented 7 years ago

This question is regarding finding the minimum-bounding-region of a model for using the region bounding volume with 3D Tiles.

In general the approach should be find the width, length, and height of the model from the accessor.min and accessor.max and convert these extents to longitude/latitude as long as the latitude is known in advance.