//modelMain为模型
let bbox = new THREE.Box3().setFromObject(modelMain);
let helper = new THREE.Box3Helper(bbox, new THREE.Color(0x02FE07));
let size = bbox.getSize();
console.log('size',size)//模型的size
this.scene.add(helper);
vue+threejs模型添加外框线
最新推荐文章于 2024-05-24 10:12:40 发布