Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是初学者Three.js。.obj我使用可见的 3D 对象导入了 three.js文件。如何找到这个.obj对象的原始宽度和高度?
Three.js
.obj
要在导入后使所有对象大小相同,请执行此操作,
var box = new THREE.Box3().setFromObject(object); let radius = box.getBoundingSphere().radius; let scale = 200/radius; object.scale.multiplyScalar(scale);