POV-Ray : Newsgroups : povray.off-topic : Memories : Re: Memories Server Time
30 Jul 2024 00:26:12 EDT (-0400)
  Re: Memories  
From: Orchid XP v8
Date: 20 Aug 2011 08:26:52
Message: <4e4fa80c$1@news.povray.org>
>> The circle is the locus of all points equidistant from the centre. It's
>> not especially hard to do that with simple integer arithmetic.
>
>    Doing it *fast* is not all that trivial.
>
>    Also, don't confuse the length of the implementation with its complexity.
> A fast circle drawing algorithm using integer math only (and only additions
> and subtractions at that, no multiplications or divisions) is a relatively
> short algorithm in terms of lines of code, but *understanding* it is a bit
> more difficult. (Coming up with it on your own is even more difficult, but
> not impossible, if you think about it long enough.)

Our graphics lecturer asserted that it's a minor modification of 
Bresenham's algorithm, and Wikipedia concurs. It would take a while with 
pencil and paper to figure out the math, and there's probably a few 
tricky special cases, but it doesn't look intractible.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.