Hi,
I was wondering how to get the bounding box for a model that fits that model perfectly. It seems like everytime I do BoundingBox bbox = new BoundingBox(theModel.getBounds()), I get the same bounding box no matter what, which has lower point (-1,-1,-1) and upper point (1,1,1). The bounding box always seems to be this size no matter how big or small the actual model is. Is there a way to get the bounding box that fits the model perfectly?
The reason I ask this question is because I want to load some models into my scengraph, and I want to compute that model’s width, length, and height. I thought I could get it from the model’s boundingbox, but as I mentioned previously, the bounding box never scales according to its model.
Thanks,
DAT