add 2nd mesh generate function