problems that were not solved before, At that time the card in the user interface to select the direction of the stamp hole increased (up and down)
and the actual position of the stamp hole before the logic and non-judgmental jam, resulting in a little progress.
looking back, it was simple, make a note of this point.
1. Vertical line definition: 80--100 or 260--280
2 horizontal line definition: <10 or >350 or 170--190
3. Two form centers as a central dividing line,
4. Calculate the angle of the split line to determine whether vertical or horizontal so you can judge that the add-on-mail hole is about the direction of the upper and lower
If the line is not vertically or horizontally divided, it is not possible to effectively determine the position of the stamp hole increased (default is 2 side Plus)
PCB Genesis plus stamp hole (stamp hole to increase the direction of judgment--left and right up and down) implementation algorithm