#29 correct mesh and draw samples in main