How to get point cloud, render and view it?

This is what that example looks like. It creates point clouds from multiple depth cameras and renders them in an external viewer (pptk):