Mesh 网格
现实中的三维物体 与计算机中的不一样,需要拆分成计算机可以处理的结构。
Mesh(网格) 就是其中之一。
除了 Mesh 外,还有 线段(Line)、骨骼(Bone)、粒子系统(ParticleSystem)等
创建网格
网格(Mesh) 代表包含点、线、面的几何体
js
const mesh = new THREE.Mesh(geometry, material);位置、缩放、旋转
位置:mesh.position
缩放:mesh.scale
旋转:mesh.rotation
以 positon 为例
js
mesh.position.x = x;
mesh.position.set(x, y, z);
mesh.position.copy(new THREE.Vector3(x, y, z));
// 不推荐
// mesh.position = new THREE.Vector3(x, y, z)