get3dpoints bugfix