added normals to meshing algorithm