Finding points within a bounding box with numpy
问题 I have millions of xyz-coordinates from multiple point cloud files which I am storing inside a 2-dimensional numpy array: [[x1, y1, z1], [x2, y2, z2],..., [xn, yn, zn]] . I want to filter all the points which are inside a specific bounding box described by 4 coordinates [[x1, y1], [x2, y2]] i.e. the lower left and upper right coordinates of a rectangle. I have already found the following piece of code to filter coordinates with numpy and it's almost what I want. The only difference is (if I'm