Process whole mesh selections, renamed main and changed connected face finder to be pure function.