I am digging through the code in an attempt to try and figure out how Cura detects holes in meshes and how it is able to render holes in the X-Ray view.
For example: Given a cube with a missing side, Cura is able to detect that one of the sides is missing and render that missing side red. Same with internal walls. How does it do this? Does it simply create red "error triangles" and add them to the mesh? If it can do this, why is there no setting that allows for the added triangles to be added permanently to the model being sliced.
---
Note: ignore the random side jutting out.
---
---
Without any mesh fixes turned on...
Layers view:
---
With all of mesh fix settings turned on.. Keep disconnected faces triggers layers being added:
---
The "Keep disconnected faces" sort of seems to be doing this.. However.. If I add an arbitrary side that juts out on an angle, it will attempt to close off the volume by connecting the side jutting out as well.
Without the side jutting out, keep disconnected faces does a good job of closing off the volume, I am just curious as to how/where this is happening in the code to allow for the X-Ray view to render holes as red faces (triangles must be getting added somewhere).