RigidPart.find_closest_nodes_to_point
- RigidPart.find_closest_nodes_to_point(point, number_of_nodes=1, report=False, single=False)[source]
Find the closest number_of_nodes nodes to a given point.
- Parameters:
- point
compas.geometry.Point| List[float] Point or List of coordinates representing the point in x, y, z.
- number_of_nodesint
The number of closest points to find.
- reportbool
Whether to return distances along with the nodes.
- point
- Returns:
- List[Node] or Dict[Node, float]
A list of the closest nodes, or a dictionary with nodes and distances if report=True.