use meshgrid to generate points cloud