Model.find_closest_nodes_to_node
- Model.find_closest_nodes_to_node(node, number_of_nodes=1, plane=None)[source]
Find the n closest nodes around a given node (excluding the node itself).
- Parameters:
- nodeNode
The given node.
- distancefloat
Distance from the location.
- number_of_nodesint
Number of nodes to return.
- planeOptional[Plane], optional
Limit the search to one plane.
- Returns:
- list of List[Node]
List of the closest nodes.