如何THREE.BufferGeometry
在 ThreeJS 中将两个缓冲区几何图形合并为一个?
var modelGeometry = null;
geometry = new THREE.CylinderGeometry( 10, 10, 10 );
if (modelGeometry == null)
{
modelGeometry = new THREE.BufferGeometry().fromGeometry(geometry);
console.log(modelGeometry);
}
bufGeometry = new THREE.SphereBufferGeometry( 20 , 20, 20 );
var mesh = new THREE.Mesh( bufGeometry, material );
modelGeometry.merge(mesh.geometry, mesh.matrix);
不做任何事情modelGeometry
。如何正确合并这些几何?