Add new vertex to LineGeometry

Hello I’m currently drawing lines with Line2(LineGeometry, LineMaterial). Let’s say I create line from 2 vertexes from A to B. How can I add dynamically one more vertex after I created the line?

Try it like so.

ConstructFrame

line 213:

let linePosCount = 200; // max value

// frame center line (A)
gCenterLineA = new THREE.BufferGeometry( );
gCenterLineA.positions = new Float32Array( linePosCount * 3 );
gCenterLineA.setAttribute( 'position', new THREE.BufferAttribute( gCenterLineA.positions, 3 ) );
centerLineA = new THREE.Line( gCenterLineA, new THREE.LineBasicMaterial( { color: 0xffffff, side: THREE.DoubleSide } ) );
sceneA.add( centerLineA );

gCenterLineA.setDrawRange ( 0, markerCountL + 1 );

For now I’m creating new LineGeometry every time when I want to add new point.