Part.find_nodes_by_box

Part.find_nodes_by_box(box)[source]

Finds all nodes within a given compas.geometry.Box.

This method uses a KDTree for efficient spatial querying, making it very fast for large meshes.

Parameters:
boxcompas.geometry.Box

The bounding box for the search.

Returns:
NodesGroup

A group containing all nodes inside the box.