Re: polygons question



makc.the.great@xxxxxxxxx wrote:
suppose there are lots of polygons, z-ordered. how do you find if
particular polygon is visible?

that is, how do you check that an edge (line segment) lies within an
area covered by several polygons?

I was thinking about "collapsing" all foregound polygons into one union
shape, then you could just check one vertex and intersections with its
edges; but 1 how do I find union 2 is there better way?

IMHO you should seriously consider reading some introductory material on computer graphics computations first. I recommend the standard book, Computer Graphics: Principles and Practice (Foley, van Dam, Feiner & Hughes). There are too many approaches to solving your problem to post here.
.




Relevant Pages

  • Re: point yes/no within a specific area
    ... Perhaps a commonly used algorithm exsists for this problem? ... You are asking if a point falls in a polygon. ... often needed in computer graphics, and so the best place to look is ... How do I find if a point lies within a polygon?" ...
    (sci.math)
  • ANN: FastGEO Computational Geometry Library
    ... * 2D/3D Segment intersection point calculation ... * 2D/3D Triangle, quadix, rectangle, circle and polygon perimeter ... * Closest point on segment from a point ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Jordans Curve Theorem for polygons
    ... >> not just the Jordan Curve Theorem, ... > polygon on the plane bounds a disc, or a stronger version that says it ... > segment connecting two vertices so that the segment only touches the ...
    (sci.math)
  • Re: Jordans Curve Theorem for polygons
    ... the union of the polygon and its interior is PL ... is PL isotopic to a triangle using a series of "pushes". ... segment connecting two vertices so that the segment only touches the ... To prove a polygon bounds a disc, ...
    (sci.math)
  • Re: Tangle: The Game
    ... > Start with a large square (or any convex polygon) drawn on paper. ... > with the player drawing the segment), each segment which is from the ...
    (sci.math)