|
|
On 4/1/2011 4:12 AM, Thorsten Froehlich wrote:
> On 31.03.11 20:39, stbenge wrote:
>>
>> Would something like this work for quad/octrees?
>>
>> #declare Array =
>> array[2]{
>> array[1]{
>> <0,0,0>
>> },
>> array[2]{
>> array[1]{
>> <0,0,0>
>> },
>> array[1]{
>> <0,0,0>
>> }
>> }
>> }
>>
>
> You can build trees with POV-Ray arrays indeed. Note that arrays inside
> arrays do not need to have the same size or dimension.
Right, I figured out that one :) I just can't mix objects, vectors,
floats, other arrays, etc. together.
Do you think the above array structure would work for data trees though?
Where each 1D array entry corresponds to a filled bucket? As I said
before, I'm a total newbie when it comes to these things :(
Thanks Thorsten,
Sam
Post a reply to this message
|
|