tmp optimization mesh object creation