]> OCCT Git - occt-copy.git/commit
0030655: Modeling Data - Provide interfaces for selection of the elements from BVH...
authoremv <emv@opencascade.com>
Wed, 17 Apr 2019 14:29:02 +0000 (17:29 +0300)
committernds <nds@opencascade.com>
Thu, 6 Jun 2019 05:27:42 +0000 (08:27 +0300)
commit96d53eab0f1af886f2746733d302752ae178b2cd
tree37570db1f2c27f6ecd38c01a8bfc3c7f5826b294
parentca4acb9b1d8285ca92e6ee5a1f8098bf5b4594ea
0030655: Modeling Data - Provide interfaces for selection of the elements from BVH tree

Provide the easy to use interfaces for selection of the elements from BVH tree.
The selection rules should be implemented in the selector class derived from *BVH_BoxSet<>::Selector* or in *BVH_BoxSet<>::PairSelector* in Reject/Accept methods.

The *BVH_BoxSet<>::Selector* is used for selection of the elements from the tree.
The *BVH_BoxSet<>::PairSelector* is used for selection of the pairs of elements from two BVH trees.

Auxiliary changes:
- Two methods BVH_Box::IsOut(OtherBox) and BVH_Box::IsOut(Point) have been added;
- Added methods for conversion of Bnd boxes to BVH boxes

Test case for the issue.

(cherry picked from commit 9175060417729936736392d52444e8f751bcf986)

# Conflicts:
# src/BVH/BVH_Box.hxx
# tests/lowalgos/grids.list
src/BVH/BVH_Box.hxx
src/BVH/BVH_BoxSet.hxx [new file with mode: 0644]
src/BVH/FILES
src/Bnd/Bnd_Tools.hxx [new file with mode: 0644]
src/Bnd/FILES
src/QABugs/FILES
src/QABugs/QABugs.cxx
src/QABugs/QABugs.hxx
src/QABugs/QABugs_BVH.cxx [new file with mode: 0644]
tests/lowalgos/bvh/bug30655 [new file with mode: 0644]
tests/lowalgos/grids.list