get_viewpoints function

Get viewpoints from an arbitrary geometry