POV-Ray : Newsgroups : povray.advanced-users : Quadtrees/Octrees: Possible with POV's SDL? : Re: Quadtrees/Octrees: Possible with POV's SDL? Server Time
30 Jun 2024 02:39:57 EDT (-0400)
  Re: Quadtrees/Octrees: Possible with POV's SDL?  
From: stbenge
Date: 1 Apr 2011 13:20:46
Message: <4d96096e@news.povray.org>
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

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