Table of Contents

Delegate OctTree<T>.SplitTestFunction

Namespace
CADability
Assembly
CADability.dll

Delegate definition of a criterion whether a node should be split when an object is added to it. When provided to the constructor it replaces the default criterion of SplitNode(Node<T>, T).

public delegate bool OctTree<T>.SplitTestFunction(OctTree<T>.Node<T> node, T objectToAdd)

Parameters

node OctTree<T>.Node<T>

The node beeing checked

objectToAdd T

The object beeing added

Returns

bool

true, if the node should be splitted, false otherwise

Constructors

SplitTestFunction(object, nint)

public SplitTestFunction(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(Node<T>, T, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(OctTree<T>.Node<T> node, T objectToAdd, AsyncCallback callback, object @object)

Parameters

node OctTree<T>.Node<T>
objectToAdd T
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual bool EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

bool

Invoke(Node<T>, T)

public virtual bool Invoke(OctTree<T>.Node<T> node, T objectToAdd)

Parameters

node OctTree<T>.Node<T>
objectToAdd T

Returns

bool