M_Rhino_Geometry_RTree_SearchOverlaps - mcneel/rhinocommon-api-docs GitHub Wiki
Searches two R-trees for all pairs elements whose bounding boxes overlap.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static bool SearchOverlaps(
RTree treeA,
RTree treeB,
double tolerance,
EventHandler<RTreeEventArgs> callback
)
VB
Public Shared Function SearchOverlaps (
treeA As RTree,
treeB As RTree,
tolerance As Double,
callback As EventHandler(Of RTreeEventArgs)
) As Boolean
- treeA
- Type: Rhino.Geometry.RTree
A first tree. - treeB
- Type: Rhino.Geometry.RTree
A second tree. - tolerance
- Type: System.Double
If the distance between a pair of bounding boxes is less than tolerance, then callback is called. - callback
- Type: System.EventHandler(RTreeEventArgs)
A callback event handler.
Type: Boolean
true if entire tree was searched. It is possible no results were found.
Supported in: 6.0.16224.21491, 5D58w