Hello, I am new to Three.js. I wanted to render lanes on Google maps based on signal color. I am getting error as below:
three.cjs:6660 THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The “position” attribute is likely to have NaN values.
const points = lane.nodes.map(p => this.marker.webGLObject.latLngAltToVector3(p));
const geometry = new THREE.BufferGeometry().setFromPoints( points );
const line = new MeshLine();
line.setGeometry(geometry);
line.setPoints(points);
const material = new MeshLineMaterial();
const mesh = new THREE.Mesh( line, material );
scene.add(mesh);
lane.nodes being list of latitudes and longitudes.
Could you please help what should i need to add.