shall generate hatched contours online in a real-time way. To meet the requirement of highefficiency laser marking, the hatch curves should stay parallel to the figures’boundary lines, distribute evenly to the greatest extent, and be generated automatically and quickly. Efficiency is an important indicator for the generation of hatched figures. Figure 1. Graphical representation of zigzag parallel and contour parallel hatchFigure 2 zigzag parallel and contour parallel hatch of multi-layer curves (From outside to inside of nested areas, only odd layers are hatched. )Please research the characteristics of the figures subject using zigzag parallel and contour parallel hatch, establish the mathematical model of hatching, design the algorithm, discuss the efficiency of algorithm, and answer the following questions:1. Realize the zigzag parallel and contour parallel hatch of the single-layer contour pattern in Attachment 1; and here, only the hatch in horizontal direction (0° degree) is considered for zigzag parallel hatch. Please realize the hatching under two groups of input parameters according to the coordinate points data of the figure in Attachment 1 (unit: mm): (1) Internal contraction of boundary distance 1mm, hatch line spacing 1mm