MATLAB: How to check a triangle surface mesh is closed

MATLABmesh

Hi,
I would like to check if a surface triangle mesh is closed or not? "Close" means like the surf of a ball, as "not close" means it has a hole or losing parts of it. Is there any method in matlab to implement it? If not, could you advice me some other suggestion?
Thank you.

Best Answer

Just a wild guess.......give a try and let me know. Find the mean of the points and check whether this mean lies inside or outside. YOu can refer the below link to check the point lying inside or outside.