let box=new THREE.BoxGeometry(3,3,3)
let mail=new THREE.MeshBasicMaterial({color:0xff6600})
let mesh=new THREE.Mesh(box,mail)
//mesh:模型
var box = new THREE.Box3().setFromObject( mesh );
var size = box.size();
three.js获取模型大小
最新推荐文章于 2024-01-29 23:44:27 发布