/**
 * CGAL constructor
 * @param bbox The CGAL bounding box to copy
 */
SpatialPartitionNode::SpatialPartitionNode( const Bbox & bbox ) : circumcenters(), tetrahedrons(), left( NULL ), middle( NULL ), right( NULL ), box( bbox.xmin(), bbox.ymin(), bbox.zmin(), bbox.xmax(), bbox.ymax(), bbox.zmax() ) {

	return;
}
/**
 * Determines if two bounding boxes overlap
 * @param b0 The first box to check
 * @param b1 The second box to check
 * @return TRUE if the boxes overlap, FALSE otherwise
 */
bool boxesOverlap( const Bbox & b0, const Bbox & b1 ) {

	return !( ( b0.xmin() > b1.xmax() ) || ( b0.xmax() < b1.xmin() ) || ( b0.ymin() > b1.ymax() ) || ( b0.ymax() < b1.ymin() ) || ( b0.zmin() > b1.zmax() ) || ( b0.zmax() < b1.zmin() ) );
}