1% Interactive surfacefun mesh refinement.
2%
3% Build a surface mesh (the "domain"), then hand it to mesh_refiner, which opens
4% an interactive figure with a slider that refines the mesh live. Drag the
5% slider to refine; drag the surface to rotate, scroll to zoom.
7mip load --install flatironinstitute/flatironinstitute/surfacefun
9dom = surfacemesh.sphere(8); % a cubed-sphere surfacemesh
11mesh_refiner(dom, 'MaxLevel', 3);