great, thanks. > * poly-indices was returning the list of indexes reversed there was and extra element in the list because of the loop index starting from size() instead of size()-1. fixed it. best, gabor