Click or drag to resize

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
Syntax
public static bool SearchOverlaps(
	RTree treeA,
	RTree treeB,
	double tolerance,
	EventHandler<RTreeEventArgs> callback
)

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.
Remarks
Do not modify the tree while a Search() is in progress. Doing so can have unintended consequences, including corruption and crashes.If you need to modify the tree, collect the results during the search and modify the tree once the search is completed.
See Also