摘要 |
PURPOSE:To effectively and smoothly approximate a curve to a broken line without increasing the processing time and the quantity of data by changing the dividing frequency, i.e., the number of approximate curves in accordance with the curvature of the curve. CONSTITUTION:A cubic Bezier curve coordinate input means input a start point Q11, a 1st control point Q12, a 2nd control point Q13, and an end point Q14 of a cubic Bezier curve. An error arithmetic means calculates the errors of a middle point P of a segment Q11Q14 connecting both points Q11 and Q14 and a middle point R of a segment Q12Q13 connecting both points Q12 and Q13. An error discriminating means discriminates whether those calculated errors are larger than the prescribed value or not. If not, a broken line data generating means produces the segment Q11Q14 connecting the start and end points of the corresponding curve as the broken line data on a curve. While the curve is divided and the actions are repeated in case the errors are larger than the prescribed value. |