In my scene I have a simple cube: var test = new THREE.Mesh(new THREE.CubeGeometry(10,10,10), new THREE.MeshBasicMaterial()); scene.add(test); This cube is getting traversed/scale
Solution 1:
You can compute the world-axis-aligned bounding box of an object (including its children) like so:
var box = new THREE.Box3();
box.setFromObject( object );
Have a look at the source code so you understand what it is doing.
three.js. r.60
Share
Post a Comment
for "Three.js: Wrong Boundingbox After Scaling A Geometry"
Post a Comment for "Three.js: Wrong Boundingbox After Scaling A Geometry"