Efficient 3D Spatial Queries for Complex Objects