Function meshOptionsForProfile