Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!seismo!columbia!topaz!ll-xn!cit-vax!nike!ucbcad!ucbvax!ucsfcgl!pixar!ph From: ph@pixar.UUCP Newsgroups: net.graphics Subject: Re: Decomposing a polygon into a buncha trapezoids Message-ID: <2940@pixar.pixar> Date: Wed, 16-Jul-86 16:30:29 EDT Article-I.D.: pixar.2940 Posted: Wed Jul 16 16:30:29 1986 Date-Received: Fri, 18-Jul-86 00:55:22 EDT References: <115@tslvax.UUCP> Distribution: net Organization: Pixar -- Marin County, California Lines: 32 Summary: scan converting concave polygons Timothy Beres (tim@tslvax.uucp) asks how to decompose a concave polygon into triangles and trapezoids with horizontal top and bottom. I think the best approach would be a scan conversion algorithm. Below is the outline of a simple scan converter for concave polygons which has worked well for me; it could easily be modified to output trapezoids and triangles. To scan convert polygon having n vertices X[i] Y[i]: create y-sorted array of indices ind[k] into vertex list: Y[ind[k-1]]