Bounding box doesn't include children? threejsr85

半腔热情 提交于 2019-12-25 05:02:52

问题


I am facing problem where bounding box doesn't include children of the mesh. I have tried all the solutions like calling update() of the BoxHelper but didn't got any success. Please help me with the solution

Code for the bounding box:-

var boxHelper = new THREE.BoxHelper(Object); // to remove the diagonals
this.scene.add(boxHelper);
boxHelper.material.color.set(0x00ff00);

boxHelper.update();

来源:https://stackoverflow.com/questions/43915580/bounding-box-doesnt-include-children-threejsr85

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!