Functions | |
| template<class BoxInIter, class BoxPairOutIter> void | Box_d_Box_d_batch_allpair (BoxInIter begin1, BoxInIter end1, BoxInIter begin2, BoxInIter end2, BoxPairOutIter out) |
| Test all pairs for intersection. | |
| template<class BoxInIter, class BoxPairOutIter> void | Box_d_Box_d_batch_scan (BoxInIter begin1, BoxInIter end1, BoxInIter begin2, BoxInIter end2, BoxPairOutIter out) |
| Sort and scan along one axis. | |
| template<class BoxInIter, class BoxPairOutIter> void | Box_d_Box_d_batch_stream (BoxInIter begin1, BoxInIter end1, BoxInIter begin2, BoxInIter end2, BoxPairOutIter out) |
| Use the streaming approach of Edelsbrunner and Overmars. | |
| template<class BoxInIter, class BoxPairOutIter> void | Box_d_Box_d_batch (BoxInIter begin1, BoxInIter end1, BoxInIter begin2, BoxInIter end2, BoxPairOutIter out) |
| Use best intersection approach. | |
The batch intersection problem is the following.
BoxPairOutIter is output iterator with value type std::pair<Box_d,Box_d>
[begin1, end1) is a valid sequence of Box_d
[begin2, end2) is a valid sequence of Box_d
The current implementations may report box pairs multiple times, so you need to filter the output to remove duplicates.
|
||||||||||||||||||||||||||||
|
Test all pairs for intersection. This is the brute force approach, with O(N^2) time complexity. Definition at line 11 of file Box_d_Box_d_batch_allpair.C. References CEP::intersection::do_intersect(). |
|
||||||||||||||||||||||||||||
|
Sort and scan along one axis. This useful for one-dimensional boxes, and for small numbers of boxes. Definition at line 126 of file Box_d_Box_d_batch_scan.C. |
|
||||||||||||||||||||||||||||
|
Use the streaming approach of Edelsbrunner and Overmars. This is the method to use for large numbers of boxes. Definition at line 213 of file Box_d_Box_d_batch_stream.C. Referenced by CEP::intersection::Box_d_Box_d_batch(). |
1.3-rc3