|
![](/i/fill.gif) |
>> The thing with vector graphics is that they are easy to draw as a
>> whole:
>> Just draw a line for each line in the input, fill polygons for filled
>> polygons, and so on. However, if you have to determine for a random point
>> what is its color, it becomes a bit more complicated.
>
> It might not be trivial but it's hardly insurmountable. You know the
> stacking order, surely it's just a matter of working down that until your
> point is inside a polygon or you run out of polygons to test? It can't be
> much more complicated than interpolating bitmaps.
Or just stack the polygons in the Z direction, then use an orthographic
camera and trace a ray along the Z direction, ... ermmm, hang on :-)
Post a reply to this message
|
![](/i/fill.gif) |