begin mesh creation logic