fn remove_leaf(&mut self, pts: &Pos, i: usize, hnd: u32) {
		assert!(self.nodes[i].is_leaf());
		if self.nodes[i].remove_leaf(hnd) {
			self.n_points -= 1;
			println!("d");
			return;
		}

		let l = self.nodes[i].link();

		if l > 0 {
			println!("L: {}", l);
			self.remove_leaf(pts, l - 1, hnd);
		} else {
			self.print(pts);
			panic!("Couldn't find hnd {} in {}!", hnd, i);
		}
		// FIXME: check for linked leaves
	}
/// Remove a point from a leaf
Remove a point from a leaf
Remove a point from a leaf
fn remove_leaf(&mut self, pts: &Pos, i: usize, hnd: u32) {
		assert!(self.nodes[i].is_leaf());
		if self.nodes[i].remove_leaf(hnd) {
			self.n_points -= 1;
			println!("d");
			return;
		}
		let l = self.nodes[i].link();
		if l > 0 {
			println!("L: {}", l);
			self.remove_leaf(pts, l - 1, hnd);
		} else {
			self.print(pts);
			panic!("Couldn't find hnd {} in {}!", hnd, i);
		}
		// FIXME: check for linked leaves
	}
fn remove_leaf ( & mut self , pts : & Pos , i : usize , hnd : u32 ) { assert ! ( self nodes [ i ] is_leaf ( ) ) ; if self . nodes [ i ] . remove_leaf ( hnd ) { self . n_points -= 1 ; println ! ( " " ) ; return ; } let l = self . nodes [ i ] . link ( ) ; if l > 0 { println ! ( " " l ) ; self . remove_leaf ( pts , l - 1 , hnd ) ; } else { self . print ( pts ) ; panic ! ( " " hnd i ) ; } // FIXME: check for linked leaves }
Remove a point from a leaf
Remove a point from a leaf
&mut self
pts
&Pos
i
usize
hnd
u32