在autodesk forge任意轴上获取查看器中每个组件的精确边界框

时间:2018-01-24 05:32:27

标签: autodesk-forge autodesk autodesk-viewer

 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)

我正在尝试此代码,但如果元素不在轴上,则边界不匹配

0 个答案:

没有答案