Smooth boundary

Hello, I'm converting a quadrilateral mesh model to Poly_Triangulation and saving it to STL, to get the same effect as the graph, when the inner and outer boundaries are very jagged, how do I convert the inner and outer edges into smooth spline curves

Attachments: