Patent ID: 8164578

Claim:
A line shape processing device that processes shapes of lines laid in a two-dimensional region with each of positions taken by the lines in said two-dimensional region designated by a first coordinate value and a second coordinate value, realized by executing a program stored in a non-transitory computer-readable information recording medium, comprising: an entry receiving unit that receives an instruction entry of a first kind, which designates a position of a point included in a line to be laid in said two-dimensional region, and an instruction entry of a second kind, which is different from the instruction entry of said first kind; a storage unit that, in a case where instruction entries of said first kind are continuously received, stores, for each first coordinate value included in a range from a first coordinate value of a start position designated by an older one of the instruction entries of said first kind to a first coordinate value of an end position designated by a later one of the instruction entries of said first kind, a second coordinate value of a point having the first coordinate value concerned and included in a line segment joining said start position and said end position, the second coordinate value being stored in association with the first coordinate value concerned; a display unit that displays a shape of the line laid in said two-dimensional region, by acquiring, in a predetermined order regarding the first coordinate values, the second coordinate values stored in said storage unit in association with the first coordinate values, and plotting dots at positions on a screen that are associated with such positions within said two-dimensional region as designated by the first coordinate values associated with the acquired second coordinate values and the second coordinate values; and a deleting unit that, in a case where instruction entries of said first kind are received continuously a predetermined number of times, and in a case where, for every pair of instruction entries of said first kind that adjoin each other among the instruction entries of said first kind received continuously, a vector that runs from a position designated by an older one of the instruction entries of said first kind in the pair concerned to a position designated by a later one of the instruction entries of said first kind in the pair concerned makes an angle equal to or larger than a predetermined obtuse angle with a vector that runs in a direction in which only first coordinate values shift in said predetermined order in said two-dimensional region, deletes from said storage unit, second coordinate values stored in said storage unit in association with first coordinate values that are included in a range defined by a smallest value and a largest value among first coordinate values respectively designated by the instruction entries of said first kind received continuously.