home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!mips!odin!fido!zhu
- From: zhu@sgi.com (Benjamin Zhu)
- Newsgroups: comp.graphics
- Subject: Re: Converting polygon with concave boundary to convex one anybody?
- Message-ID: <ns5o6r8@fido.asd.sgi.com>
- Date: 28 Jul 92 15:28:12 GMT
- References: <9207281143.AA27417@ucbvax.Berkeley.EDU>
- Sender: news@fido.asd.sgi.com (Usenet News Admin)
- Organization: Silicon Graphics, Inc.
- Lines: 39
-
- In article <9207281143.AA27417@ucbvax.Berkeley.EDU> sm@cs.hull.ac.uk, S.Marshall@hull.ac.uk writes:
- >
- >I have a group of planar polygons with concave boundaries. I wish to replace
- >each of these polygons with a number of triangular ones. For a polygon with a
- >convex boundary, it's quiet easy. All I do is pick a single polygon vertex and
- >form triangular facets, using this vertex, with successive pairs of vertices
- >around the polygon boundary. The single polygon vertex is therefore common to
- >all triangular facets.
- >
- >This, of course, will not work for polygons whose boundaries are concave, since
- >a triangular facet may lie outside the boundary of the polygon. So either I
- >must use a different method of generating triangular facets, or firstly
- >generate polygons with convex boundaries from the polygons with concave
- >boundaries.
- >
-
- Well, I finally got ten-minute free time before flying to Siggraph.
- No rescue after siggraph though. Hopefully, I can help you out
- before I plunge into endless ucode and bug fixes again.
-
- Look up Preparata and Shamos book, ``Introduction to Computational
- Geometry.'' They elaborated a number of O(n*log(n)) algorithms
- there to do what you wanted.
-
- As long as you have a 2-3 tree or an avl tree implementation around,
- it should be pretty straightforward to implement any of these
- algorithms.
-
- See you guys at siggraph. Do not forget to drop by our booth. Our
- Venice machines (marketing buzz words, RealityEngine) are going to
- knock many people's pants off:-)
-
- Ben
-
- --
- Benjamin Zhu ;;; ``Recently-promoted shinto'' priest of microcode
- Silicon Graphics, Inc. ;;; ``Just call my name, I will be there.''
- zhu@graphack.asd.sgi.com ;;; ``Projective geometry is all geometry.'' - Cayley
- (415) 390-1187 ;;; ``Learn forever, young forever.'' - Anonymous
-