delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/16/16:35:26

Message-ID: <3717AB3C.2D534682@go.ro>
Date: Sat, 17 Apr 1999 00:27:25 +0300
From: Radu Georgescu aka skoola <skoola AT go DOT ro>
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: polygon fill implementaion and theory
References: <RSM DOT 99Apr15101409 AT platinum DOT math DOT arizona DOT edu>
Reply-To: djgpp AT delorie DOT com

I'm working right now at a demo and I have what you need... if you realy want
this stuff mail me...

>     Matthew> Anybody know the the theory and possibly the implementation of
>     Matthew> a polygon fill?  I know Allegro has such functions, but I
>     Matthew> would prefer to write my own function to learn about it.
>
> For the theory, try standard graphics textbooks, such as Foley and van Dam.
>
> For code, you could do worse than to look at the source code for the GNU
> libplot library for 2D vector graphics (see URL below).  The current
> release incorporates the X11 vector graphics code, and uses it to draw wide
> lines and filled polygons.
>
> The next release will break out the X11 code as a separate library
> ("libxmi", i.e. X Machine-Independent vector graphics).
>
> By the way, the X11 code was written in pre-ANSI C.  Porting it to ANSI C,
> which is what I needed to do in order to incorporate it, was a bit of a
> challenge.
>
> --Robert
>
> --
> Robert S. Maier   | Internet: rsm AT math DOT arizona DOT edu
> Dept. of Math.    |
> Univ. of Arizona  | FAX:   +1 520 621 8322
> Tucson, AZ  85721 | Voice: +1 520 621 6892 (department)
> U.S.A.            |        +1 520 621 2617 (office)
>
> Maintainer of the GNU plotting utilities package
> (see http://www.gnu.org/software/plotutils/plotutils.html ).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019