with asy -V sample.asy > ocamera.asy. An interactive viewer will let you
change the view point as you like, and then right-double-click will bring a menu. Click Camera and current camera settings will be saved in ocamera.asy file, looking something like: