Marching squares masks from snippets