I have followed the apple example to generate the point clouds. https://developer.apple.com/documentation/arkit/world_tracking/visualizing_and_interacting_with_a_reconstruct