POV-Ray : Newsgroups : povray.binaries.images : Something abstract : Re: Something abstract Server Time
19 Apr 2024 17:53:10 EDT (-0400)
  Re: Something abstract  
From: Norbert Kern
Date: 5 Mar 2020 07:15:02
Message: <web.5e60ec32bbabb131ab765f000@news.povray.org>
"Samuel B." <stb### [at] hotmailcom> wrote:

> Hi Norbert,
>
> I'm not sure I ever posted the thing I'm doing here. Attached is a 'cheat sheet'
> showing how I figure out which tiles get used. There are 6 basic tiles: solid,
> empty, outside corner, inside corner, wall, and 'bridge' which is two outside or
> inside corners. I test four cells of a pattern to determine which tile gets
> used. The cells are evaluated and counted starting from the bottom left. The
> counting algorithm is 1*SW + 2*SE + 4*NW + 8*NE to obtain a decimal number from
> the four 2 bit cells. Then I use that number to access objects created with the
> cheat sheet in mind. For instance, number 1 is an outside corner facing the
> upper right.
>
> Sorry if that's confusing at all :P At any rate, I can provide the source if you
> want.
>
> Sam


I've a clear impression of the algorithm now, but of course I want the source!

Norbert


Post a reply to this message

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