edition babylonjs@5.0.0 -alpha. The calculation of circumscribed rectangle below 0 is completely correct! babylonjs@5.0.0 -alpha. 0 is wrong to add an external box up

version—babylonjs@5.0.0-alpha.0 VIew

version—babylonjs@5.0.0-alpha.36 VIew

Because the model cannot be uploaded, I use the following model. Please download the following model. Thank you

object.zip (30.2 KB)

he core code is as follows

BABYLON.SceneLoader.ImportMesh("", “/object/”, “object.obj”, scene, function (newMeshes) {

let group = new BABYLON.Mesh(“group”, this.scene);

newMeshes.map(mesh => {

mesh.setParent(group);

});

let childMeshes = group.getChildMeshes();

if(childMeshes.length > 0){

let min = childMeshes[0].getBoundingInfo().boundingBox.minimumWorld;

let max = childMeshes[0].getBoundingInfo().boundingBox.maximumWorld;

for(let i = 0,len = childMeshes.length; i < len; i++){

let meshMin = childMeshes[i].getBoundingInfo().boundingBox.minimumWorld;

let meshMax = childMeshes[i].getBoundingInfo().boundingBox.maximumWorld;

min = BABYLON.Vector3.Minimize(min, meshMin);

max = BABYLON.Vector3.Maximize(max, meshMax);

}

group.setBoundingInfo(new BABYLON.BoundingInfo(min, max));

}

group.showBoundingBox = true;

group.scaling.set(0.1,0.1,0.1);

});

There is also a playground link, but the model can’t be uploaded. Please forgive me

https://playground.babylonjs.com/#FVC542#4