encapsulate mesh