add viewpoint to index