a more efficient implemntation of populate_cloth

Signed-off-by: nps <nicholas.schwartzmyer@gmail.com>