calculate create mesh