Use of rational numbers in the design of robust geometric primitives for three-dimensional spatial database systems