Mesh split



Hi
I am trying to split or trim a mesh with a solid but faces seems to be unfixed.
I provided two images showing the difference .