In the python project you can provide whatever polygon, as a collection of points, a line and it returns the sub-polygons cutted by the line.
Moreover, in the C++ part you can provide a domain and a polygon to create a conformal mesh that fills the domain replicating the polygon.

In C++ there are different functions that create these matlab script to show the mesh or the cutted polygon.
