			sphereInter.visible = false;
					sphereOnLine.visible = false;
					renderer.domElement.style.cursor = '';

				}

				await renderer.renderAsync( scene, camera );

				stats.update();

			}

			//

			function switchLine( val ) {

				switch ( val ) {

					case 0:
						line.visible = true;
						thresholdLine.visible = true;

						segments.visible = false;
						thresholdSegments.visible = false;

						break;

					case 1:
						line.visible = false;
						thresholdLine.visible = false;

						segm