Maybe you can use some of my examples?
Construction of frames with contour/profile
Addon for triangulation of implicit surfaces/ forms with holes
forms with holes star at bottom
When generating the star with the star-shaped holes, there may be malfunctions. The algorithm sometimes fails with corners that are too sharp and fine in relation to the given size of the triangles used for triangulation.