home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!wupost!gumby!kzoo!k044477
- From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
- Subject: Re: 3D Graphics
- Message-ID: <1992Dec14.055810.18557@hobbes.kzoo.edu>
- Organization: Kalamazoo College
- References: <723298789.AA00239@insane.apana.org.au> <830021@hplvec.LVLD.HP.COM>
- Date: Mon, 14 Dec 1992 05:58:10 GMT
- Lines: 31
-
- bayes@hplvec.LVLD.HP.COM (Scott Bayes) writes:
- >[someone else wrote:]
- >> [QuickDraw is good...]
- >> except for deciding where to break a 1-pixel off diagonal
- >> line :-)
- >
- >This has always annoyed me. Bresenham's algorithm, which handles this
- >very well--optimally, one might say--has been around _forever_. Why
- >does Apple choose to draw lines with "hooks" on the ends?
- >
- >* **
- > *** --> ***
- > *** ***
- > *** **
-
- Your illustration makes it appear that _LineTo doesn't divide up the
- remainder pixels properly; that is, if n pixels are left over after
- drawing the "main" portion of the line, QD puts one on one end and n-1
- on the other end. Most people would put n/2 on one end and (n+1)/2 on
- the other (integer arithmetic, you see).
-
- This doesn't have much to do with Bresenham, does it? He just gives an
- algorithm for drawing, and whether or not you divvy up the remainder
- pixels properly is up to you, right?
-
- Do I read your illustration correctly? Can anyone confirm that QuickDraw
- does this? (Inquiring minds want to know...)
- --
- Jamie McCarthy Internet: k044477@kzoo.edu AppleLink: j.mccarthy
- "This sounds like a semantico-psychological backwardization of the
- real world image." - Dave Bloom (bloomda@ctrvax.vanderbilt.edu)
-