hedMesh) {
					mesh = findMeshByBatchId(intersects[0].batchId);
				}

				select(mesh);
			} else {
				unselect();
			}
		}

		canvas.addEventListener('mousedown', onCanvasMouseDown);
		canvas.addEventListener('mousemove', onCanvasMouseMove);
		canvas.addEventListener('click', onCanvasClick);

		let targetMesh = null;

		function findMeshByBatchId(batchId) {
			const children = regularMeshes.children;
			for (let i = 0, l = children.length; i < l; i++) {
				if (children[i].userData.batchId === batchId) 