collapse restrictions implemented

default output is a quad mesh with possible non degenerate quads, please
see help for other options.