In this scenario, I have 2 Object3Ds with one nested inside the other:
var obj1 = new THREE.Object3D();
var obj2 = new THREE.Object3D();
obj1.add(obj2);
Assuming obj1 is AxB units wide, how can I instruct obj2 to match that size? Essentially, how can I make obj2 expand to match its parent's dimensions?
UPDATE
After referencing, I found a solution. To determine the parent's size, I used the following:
// parent's model
model.geometry.computeBoundingBox();
var width = model.geometry.boundingBox.max.x - model.geometry.boundingBox.min.x;
var height = model.geometry.boundingBox.max.y - model.geometry.boundingBox.min.y;