let positions = new Float32Array(points.length * 3);
let colors = new Float32Array(points.length * 3);
*/
处理positions和colors
/*
let bufferGeometry=new THREE.BufferGeometry()
bufferGeometry.addAttribute('position', new THREE.BufferAttribute(positions, 3));
bufferGeometry.addAttribute('color', new THREE.BufferAttribute(colors, 3));
bufferGeometry.computeBoundingBox();
let material = new THREE.PointsMaterial({
size: 2,
vertexColors: THREE.VertexColors,
transparent: true,
opacity: 1,
sizeAttenuation: false
});
let mesh=new THREE.Points(bufferGeometry,material)