Hi all,
I am struggling for a couple of days to determine if parts of specific mesh are inside the other mesh. In order to make the things simpler at start I tried it with the cubes, and script that I wrote it looks like it is working. Basically I am checking if each point of the smaller cube is within the bigger cube. I even deleted one vertice from the smaller cube, which I am checking if it is inside the bigger one, and it is still working. What I have noticed is that origin point has to be for both objects and the same place.
Then I tried with the actual object that I would like to use this functionality with, which is tshirt. In this case I got the result that all of the points are outside the cube. I put the origin point of the tshirt to the same place as of the cube, but it did not help. I attach the file, do you have any idea why it is not working?
Used blender 2.83.
points_detect_test.blend (1020.7 KB)
Thanks in advance.