摘要 |
Primitive data in the form of defined lines for a computer graphics display is processed as by interpolating triangles, as during scan conversion, and by treating lines as triangle edges. An offset point is selected, e.g. offset perpendicularly from the line midpoint a distance of one-half the line length to define a triangle vertex along with the line endpoints. The resulting triangle is interpolated for example as with barycentric coordinates. Accordingly, the line may be interpolated, e.g. shaded, as though it were an edge of the defined triangle. For lines, sample points are coerced to lie on the triangle edge.
|