摘要 |
PROBLEM TO BE SOLVED: To provide a circular arc interpolation processing method which can work at a high speed. SOLUTION: When plural segment data which approximate a circular arc are generated from the data on the circular arc that is designated at the start, pass and end points, the center point of the circular arc is calculated from the data on the designated three points. Then the square value of radius of the circular arc is calculated from the center point and a point set on the circular arc to decide a dividing angle. A vector product is calculated between the vector reaching the pass point from the start point and the vector reaching the end point from the pass point. Based on the code of the vector product, the turning direction of the dividing angle is decided. The segment data are successively divided in the turning direction that is decided at every dividing angle, and the generation of segment data is over when the end point of the segment data exceeds the end point of the circular arc. |