delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/25/00:33:30

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro & polygon3d
Date: Mon, 23 Jun 1997 20:24:28 +0100
Organization: None
Distribution: world
Message-ID: <l5Na6AAs1srzEwLr@talula.demon.co.uk>
References: <33AE25D5 DOT 70A3170C AT bitsmart DOT com>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

James writes:
>I was woundering if one can do many points using allegro's polygon3d ie
>more than say 6. 

Yes, you can use any number you like. Obviously the more edges the shape
has, the slower it will be to render, but there's no fixed limit.

>Also do the points have to be in anysort of shape ie
>make a rect of triangle?? or can the be anywhich way and allegro will do
>the "rendering" right??

They need to form a convex polygon (that is a shape which you could
stretch a rubber band around, and it would lie flush against all the
edges of the poly). The 2d polygon() function also handles concave
shapes (ie. ones with indentations) and even edges that cross over each
other, but the polygon3d function has been optimised in ways that
restrict it to convex outlines...


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


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