updated mesh function to include normal maps for triangles