I've got a point cloud (point cloud is represented by many vertices) and a cube. Some vertices of the point cloud are inside the cube and some are outside of it.
From this point cloud I'd like to extract all vertices, that are located inside the cube.
How can you extract all vertices within the cube?
So far I have tried a boolean modifier, but unfortunately boolean modifiers do not seem to work with vertices...
Thanks for your help!
Side note: The point cloud was generated by ray casting ("BVHTree.ray_cast") onto an object. I created a new mesh object and added vertices at the location of the ray hits using "bmesh.verts.new(ray_hit_location)". This new mesh object is my point cloud.