Hatch_generate_boundary