added mesh function example, mesh from .xml file support