oldLine );
				thresholdSegments.computeLineDistances();
				thresholdSegments.scale.set( 1, 1, 1 );
				scene.add( thresholdSegments );
				thresholdSegments.visible = false;

				line = new Line2( lineGeometry, matLine );
				line.computeLineDistances();
				line.scale.set( 1, 1, 1 );
				scene.add( line );

				thresholdLine = new Line2( lineGeometry, matThresholdLine );
				thresholdLine.computeLineDistances();
				thresholdLine.scale.set( 1, 1, 1 );
				scene.add( thresholdLine );

				const geo = new 