Correct processing cases where a group of faces lies on U-periodic and V-periodic (torus-like) surface. Add comments according to the remarks