RAA - ruby-octree

ruby-octree / 2.0

Short description: Generalised octree data structure
Category: Library/Math
Status: beta
Created: 2005-05-23 17:40:06 GMT
Last update: 2005-05-23 17:40:06 GMT
Owner: Harrison Ainsworth / hxa7241 (Projects of this owner)
Homepage: http://www.hxa7241.org/articles/content/octree-general-ruby_hxa7241_2005.html
Download: http://www.hxa7241.org/articles/content/octree-general-ruby_hxa7241_2005.zip
License: BSD-type
Dependency:
None
Description:

The purpose was to translate a reusable octree component in C++ to Ruby. The original aimed for generalisation and compactness. This translation follows the principal structure, and gains more generality from the language. It also becomes simpler, although probably more bulky and slower.

The result allows a range of algorithmic applications, without handing over complete access, by using a visitor variant.

The represented octree is cubical and axis aligned, partitions are axis aligned, partitions divide in half, each level partitions the previous level in all three axises.

Algorithms implemented using the original Octree include: selecting photons within a spherical shell region, and finding nearest object intersection.

Edit this project (for project owner)

back to RAA top