Integrated mesh generator