Mesh border duplication

Hello,

In my c++ plug-in, I need to extract the border of a mesh.
I found out function
bool ON_Mesh::DuplicateBorder(ON_SimpleArray<ON_Polyline*>& polylines, bool joinOverUnweldedVertices) const
which is perfect for my purpose but it exists only for open nurbs for Rhino 7.

How can I extract the mesh border also in my Rhino 6 plug-in version?

Any suggestion would be very appreciated!

Thank you,
Alberto

Hi @margari,

Does this sample help?

cmdSampleDupMeshBorder.cpp

– Dale

Yes it does!
Thank you very much @dale.