fn print_node(&self, pts: &Pos, i: usize, bbox: BBox<i64>, t: u32) {
		let n = &self.nodes[i];
		print!("\n{:3} ", i + 1);
		for _ in 0 .. t {
			print!("  ");
		}
		if n.is_leaf() {
			print!("leaf:");
			for hnd in n.leaf_children() {
				let p = pts.pos(hnd);
				print!(" {:?}_{:?}", hnd, p);
			}
			let j = n.link();
			if j > 0 {
				self.print_node(pts, j - 1, bbox, t);
			}
		} else {
			print!("{:?}", n);
			print!("\t{:?}", bbox);
			for ch in 0 .. 8 {
				let bb = Node::child_bbox(ch, bbox);
				let k = n.child[ch] as usize;
				if k > 0 {
					self.print_node(pts, k - 1, bb, t + 1);
				}
			}
		}
	}
/// Print a node and its descendants
Print a node and its descendants
Print a node and its descendants
fn print_node(&self, pts: &Pos, i: usize, bbox: BBox<i64>, t: u32) {
		let n = &self.nodes[i];
		print!("\n{:3} ", i + 1);
		for _ in 0 .. t {
			print!("  ");
		}
		if n.is_leaf() {
			print!("leaf:");
			for hnd in n.leaf_children() {
				let p = pts.pos(hnd);
				print!(" {:?}_{:?}", hnd, p);
			}
			let j = n.link();
			if j > 0 {
				self.print_node(pts, j - 1, bbox, t);
			}
		} else {
			print!("{:?}", n);
			print!("\t{:?}", bbox);
			for ch in 0 .. 8 {
				let bb = Node::child_bbox(ch, bbox);
				let k = n.child[ch] as usize;
				if k > 0 {
					self.print_node(pts, k - 1, bb, t + 1);
				}
			}
		}
	}
fn print_node ( & self , pts : & Pos , i : usize , bbox : BBox < i64 > , t : u32 ) { let n = & self . nodes [ i ] ; print ! ( " \n " i 1 ) ; for _ in 0 .. t { print ! ( " " ) ; } if n . is_leaf ( ) { print ! ( " " ) ; for hnd in n . leaf_children ( ) { let p = pts . pos ( hnd ) ; print ! ( " " hnd p ) ; } let j = n . link ( ) ; if j > 0 { self . print_node ( pts , j - 1 , bbox , t ) ; } } else { print ! ( " " n ) ; print ! ( " \t " bbox ) ; for ch in 0 .. 8 { let bb = Node :: child_bbox ( ch , bbox ) ; let k = n . child [ ch ] as usize ; if k > 0 { self . print_node ( pts , k - 1 , bb , t + 1 ) ; } } } }
Print a node and its descendants
Print a node and its descendants
&self
pts
&Pos
i
usize
bbox
BBox<i64>
t
u32