Exported mesh function