Open a Potree directory
If you already serve a Potree v2 directory, this is the driver that turns its metadata and hierarchy into the neutral tree contract.
import { loadPointCloudSource, loadHierarchy } from '@voxelkloud/format-potree'
const source = await loadPointCloudSource('/pointclouds/autzen/')
const tree = await loadHierarchy(source)