{
					return children[i];
				}
			}
			return null;
		}

		function select(mesh) {
			targetMesh = mesh;

			API.selected.color.copy(mesh.material.diffuse);
			API.selected.opacity = mesh.material.opacity;
			selectedFolder.children[0].enable();
			selectedFolder.children[1].enable();
		}

		function unselect() {
			targetMesh = null;
			API.selected.color.setRGB(1, 1, 1);
			API.selected.opacity = 1;
			selectedFolder.children[0].disable();
			selectedFolder.children[1].disable();
		}

		const targetBoun