Max Script detect only the outer side


Hello, I tried to detect only the outer side of the object through the link example above. However, the fact that the number of Tri’s in the model is high causes performance degradation, and if the object is complicated, it doesn’t seem to be tracked as well as expected.

Do you have a good solution?

Even if it’s not RayMeshGridIntersect, please let me know if there’s a better way