public void Load(BinaryReader input) { this.Lmin=input.ReadDouble (); this.Lmax=input.ReadDouble (); this.Rmin=input.ReadDouble (); this.Rmax=input.ReadDouble (); this.center=input.ReadInt32 (); bool isnode = input.ReadBoolean (); if (isnode == true) this.left = new VPF_Node (); else this.left = new VPF_Leaf (); this.left.Load (input); isnode= input.ReadBoolean (); if (isnode == true) this.right = new VPF_Node (); else this.right = new VPF_Leaf (); this.right.Load (input); }
public void Load(BinaryReader br) { bool isnode = br.ReadBoolean (); if (isnode == true) this.Root = new VPF_Node (); else if (isnode == false) this.Root = new VPF_Leaf (); this.Root.Load (br); }
internal void SearchInNode(object q,double radius,VPF_Vertex V,List<ResultPair> results) { if (V is VPF_Node) this.SearchInNode(q,radius,(VPF_Node)V,results); if (V is VPF_Leaf) this.SearchInNode(q,radius,(VPF_Leaf)V,results); }