Refactored Rendering of Mesh.