Deleting or updating a line

Possibly you can take something from it?
Construction of frames with contour/profile

This example works with variable lines: ConstructFrame . The scene is redrawn when the lines are changed.

line 375 function redrawSceneA( ) { ...

line 817 function createLinesLR( ) { ...

line 857

function onContainerBmouseDown( event ) { 
		... ... ...
		gLineL.attributes.position.needsUpdate = true;
		redrawSceneA( );
		}

Also note in some places:
gLineR.attributes.position.needsUpdate = true;

(L left, R right)