I have an existing line that I've created:
// material
const material = new THREE.LineBasicMaterial({ color: 0xffffff });
// array of vertices
vertices.push(new THREE.Vector3(0, 0, 0));
vertices.push(new THREE.Vector3(0, 0, 5));
//
const geometry = new THREE.BufferGeometry().setFromPoints(vertices);
const line = new THREE.Line(geometry, material);
Now, my goal is to extend this line after it has been created. I've consulted this resource on how to update things, but I don't believe it addresses my specific situation. Instead of adding more vertices to my shape, I actually want to move the existing ones. I attempted to delete the line and redraw it longer, but unfortunately, my browser kept crashing. Any suggestions on how I can achieve this would be greatly appreciated!