public T FindPartAt<T>( Point p, Predicate<T> pred, SearchLayers layers ) where T: Part
Parameters
- p
- a
Point
in model coordinates - pred
- This is a predicate that is given an part of type T; if the predicate returns true, this method returns that part. If this argument is null, this returns the first part it finds at the point.
- layers
- The kinds of Layers to search in. For example, if you are looking for Nodes, using the value SearchLayers.Nodes, this will speed up the search by ignoring layers containing Links.
Type Parameters
- T
- the Type of part to find
Return Value
null if no such part is found