Premium
An Integer One‐Pass Algorithm for Voxel Traversal
Author(s) -
Liu Y. K.,
Žalik B.,
Yang H.
Publication year - 2004
Publication title -
computer graphics forum
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.578
H-Index - 120
eISSN - 1467-8659
pISSN - 0167-7055
DOI - 10.1111/j.1467-8659.2004.00750.x
Subject(s) - computer science , algorithm , voxel , tree traversal , integer (computer science) , rounding , traverse , discriminator , code (set theory) , artificial intelligence , telecommunications , geodesy , detector , programming language , geography , operating system , set (abstract data type)
Voxel traversing along a line in a uniformly divided voxel space is frequently needed in different applications of computer graphics. The paper presents a new integer one‐pass algorithm for this problem. In 2D, the proposed approach is based on a modification of the well‐known Bresenham algorithm. The algorithm is then extended in 3D where a special case may occur. It is characterized by a simple discriminator. A derivation for this discriminator given in the paper confirms that all calculations can be realized using only integer arithmetic. In this way, the accumulation of rounding errors is completely eliminated, and a robust and compact implementation can be easily achieved. One of the main advantages of the proposed algorithm is that it visits 1–3 voxels during each iteration thus assuring its efficiency. The algorithm has been compared with other algorithms for voxel traversing by measuring spent CPU time. For comparison, Cleary & Wyvill's, Amanatides & Woo's, and Code‐based algorithm have been used. The proposed algorithm is faster than the referenced algorithms.