File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ namespace py = pybind11;
77
88using T = int64_t ; // is a temporary type of template. You can change it and
99 // recompile this.
10- const int B = 6 ; // the number of children of tree.
10+ const int B = 2 ; // the number of children of tree.
1111
1212PYBIND11_MODULE (PRTree, m)
1313{
Original file line number Diff line number Diff line change @@ -645,12 +645,12 @@ class PRTreeElement
645645 is_used = true ;
646646 }
647647
648- bool operator ()(const BB<D> &target) { return mbb (target); }
648+ bool operator ()(const BB<D> &target) { return is_used && mbb (target); }
649649
650650 template <class Archive >
651651 void serialize (Archive &archive)
652652 {
653- archive (mbb, leaf);
653+ archive (mbb, leaf, is_used );
654654 }
655655};
656656
You can’t perform that action at this time.
0 commit comments