% vec_normals.m — The surface normal field (surfacefunv). % % A surfacefunv is a three-component vector field on a surface. normal(dom) % returns the unit outward normal. quiver(v, scale, n) draws n vectors per % patch, scaled by `scale`. mip load --install flatironinstitute/flatironinstitute/surfacefun rng(0) p = 16; nref = 2; dom = surfacemesh.blob(p + 1, nref); v = normal(dom); figure(1); quiver(v, 0.2, 6) title('Surface normals');