摘要 |
Systems and method for presenting a free-form drawing are described. In some aspects, a first point, a second point, and a third point from an input curve in the free-form drawing are received. A first quadratic Bezier curve is determined, where a control point of the first quadratic Bezier curve includes the second point and endpoints of the first quadratic Bezier curve include the first point and the third point. A first portion of the first quadratic Bezier curve is provided for display, where endpoints of the first portion of the first quadratic Bezier curve include the first point and a second terminal point, and where the first portion of the first quadratic Bezier curve does not include the third point. |
主权项 |
1. A computer-implemented method for presenting a free-form drawing, the method comprising:
receiving a first point, a second point, and a third point from an input curve in the free-form drawing; determining a first quadratic Bezier curve, wherein a control point of the first quadratic Bezier curve comprises the second point and endpoints of the first quadratic Bezier curve comprise the first point and the third point; providing for display of a first portion of the first quadratic Bezier curve, wherein endpoints of the first portion of the first quadratic Bezier curve comprise the first point and a second terminal point, and wherein the first portion of the first quadratic Bezier curve does not comprise the third point; receiving a fourth point from the input curve; determining a second control point, the second control point comprising an intersection of a first line and a second line, the first line comprising a control point of the first portion of the first quadratic Bezier curve and the second terminal point, the second line comprising the third point and the fourth point; determining a second quadratic Bezier curve, wherein a control point of the second quadratic Bezier curve comprises the second control point and endpoints of the second quadratic Bezier curve comprise the second terminal point and the fourth point; and providing for display of a first portion of the second quadratic Bezier curve, wherein endpoints of the first portion of the second quadratic Bezier curve comprise the second terminal point and a third terminal point, and wherein the first portion of the second quadratic Bezier curve does not comprise the fourth point. |