home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics
- Path: sparky!uunet!news.univie.ac.at!hp4at!cophos!js
- From: js@cophos.co.at (Jodok Schaeffler)
- Subject: Polygon with holes
- Message-ID: <1993Jan6.135808.6337@cophos.co.at>
- Organization: COPHOS Development Team, ZUMtOBEL Licht GmbH, Dornbirn, AUSTRIA
- Distribution: comp.graphics
- Date: Wed, 6 Jan 1993 13:58:08 GMT
- Lines: 30
-
- I have a problem with polygons, specifically with the holes
- within a polygon.
-
- There are (at least) two ways to specify such a polygon:
- - as a structure of polygons, holes beeing represented
- as polygons within polygons
- - as a closed line, following the edges of the polygon
- and the holes. To connect all holes to the actual polygon,
- the closed line needs to cross the interior of the polygon.
- The closed line comes back to the point where it left the edge
- at the same position, but with opposite direction.
-
- What I am looking for:
- An algorithm to find a line connecting all
- holes within a polygon.
-
- My idea: to construct something like a Voronoi diagramm to find
- the 'minimal spanning tree' of all holes within the
- polygon.
-
- The problem seems similar to the traveling salesman problem, as
- I have to find any (not even an 'optimal') connection between
- the holes. My problem is to construct a Voronoi diagram from
- polygons, not from points.
-
- If someone can help me, point me to a direction to go, or
- even knows a source for code, I would appreciate this.
-
-
- Jodok Schaeffler
-