简体   繁体   中英

How do I get all 3d points in a numpy array that are not within a inner bounding box, but between the outer bounding box?

I have a Numpy array for 3d points in the format (n, 3), where n is the number of points, and column 1 is the x coordinate, column 2, is the y coordinate, and column 3 is the z coordinate. How do I get all the point in the outer bounding box, but not in a inner bounding box?

How are the orientations of both boxes? Are the axis parallel to x, y, z?

In this case it is not so difficult.

  1. Find out if the point is in the x, y, z range of the outher box
  2. if yes: do the same test for the inner box

Just let me know when you need the code

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM