I need to do some computations of 2D polygons in UE5 C++, such as if two polygons overlap, how do I get their vertex coordinates or other information of their intersection, union and difference sets?
For example the following the vertex, edge or other properties of the yellow polygon:
I have searched on Google and even ChatGPT for many days but I could not find a way to do it in UE5.
For now I prefer to import CGAL(Computational Geometry Algorithms Library) to UE5 and I found it is so complex to do that! I have downloaded CGAL via vcpkg but I am unable to import it to my UE5 project.
What should I do so I can get the result of intersection, union and difference sets?