w LineGeometry();
				lineGeometry.setPositions( positions );
				lineGeometry.setColors( colors );

				const segmentsGeometry = new LineSegmentsGeometry();
				segmentsGeometry.setPositions( positions );
				segmentsGeometry.setColors( colors );

				segments = new LineSegments2( segmentsGeometry, matLine );
				segments.computeLineDistances();
				segments.scale.set( 1, 1, 1 );
				scene.add( segments );
				segments.visible = false;

				thresholdSegments = new LineSegments2( segmentsGeometry, matThresh