|
![](/i/fill.gif) |
Warp <war### [at] tag povray org> wrote:
> How would you determine that a given point is, for example, on a
> polyline or inside a polygon?
Well, you know the line thickness. Just represent lines as additional
polygons then process only polygons (for example; there's bound to be a
quicker way).
> 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.
Bill
Post a reply to this message
|
![](/i/fill.gif) |