POV-Ray : Newsgroups : povray.general : Two feature requests related to SVG : Re: Two feature requests related to SVG Server Time
31 Jul 2024 08:23:20 EDT (-0400)
  Re: Two feature requests related to SVG  
From: Bill Pragnell
Date: 15 Jun 2007 07:35:03
Message: <web.4672786979affa24731f01d10@news.povray.org>
Warp <war### [at] tagpovrayorg> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.