Use a set to store embedded vertices as we want to ensure that a single point…
Use a set to store embedded vertices as we want to ensure that a single point will only end up once in this list as otherwise it will get duplicated as it is pretended to lie on the seam.