let bounds = new THREE.Box3()
, box = new THREE.Box3()
, instanceTree = viewer.impl.model.getData().instanceTree
, fragList = viewer.impl.model.getFragmentList()
instanceTree.enumNodeFragments(id1, function (fragId) {
fragList.getWorldBounds(fragId, box)
bounds.union(box);
}, true)
我正在尝试此代码,但如果元素不在轴上,则边界不匹配