RTreeSearchOverlaps Method |
Searches two R-trees for all pairs elements whose bounding boxes overlap.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntaxpublic static bool SearchOverlaps(
RTree treeA,
RTree treeB,
double tolerance,
EventHandler<RTreeEventArgs> callback
)
Public Shared Function SearchOverlaps (
treeA As RTree,
treeB As RTree,
tolerance As Double,
callback As EventHandler(Of RTreeEventArgs)
) As Boolean
Parameters
- treeA
- Type: Rhino.GeometryRTree
A first tree. - treeB
- Type: Rhino.GeometryRTree
A second tree. - tolerance
- Type: SystemDouble
If the distance between a pair of bounding boxes is less than tolerance,
then callback is called.
- callback
- Type: SystemEventHandlerRTreeEventArgs
A callback event handler.
Return Value
Type:
Boolean
true if entire tree was searched. It is possible no results were found.
See Also