bounding-volume

Having a little issue calculating the bounding sphere radius

我的未来我决定 提交于 2019-12-11 02:42:41
问题 I have managed to calculate the bounding sphere radius in two ways, but none is giving me exactly what I want. I don't need a "pixel" perfect bounding sphere but I would like something better than what I currently have. I'm using Wavefront .obj models and to calculate the bounding sphere radius for those models I extract the current model dimensions (I'm using the GLM library from Nate Robbins) which will give me the dimension on each axis. First approach: Divide each axis by 2 and that will