I'm trying to vet the correctness of my mesh object, and I'm trying to find a method that will detect holes in my mesh. I define a hole as either of the following (these definitions are almost equivalent):
- An area between faces that should be divided by another (missing) face.
- A face who's front and back are on the same side of the mesh, i.e. it is impossible to tell which side of the face is on the inside of the mesh
- A hole is indicated by a face that has at least one edge that is not shared by another face.
How can I automatically identify such holes/affected edges?
I found this answer, but this only proposes using a "magic fix everything" tool, while I'm looking for a way to find the problems, and correct them myself.