[V8i ss3 mdl ] How to extract mesh boudary

Hi,

My system: windows7 , v8i ss3, vs 2005

I am using mdlMesh_newVariablePolyface to create mesh. After mesh is created, I want to extract mesh boudary as LineString.

This is code for mesh:

mdlMesh_newVariablePolyface (&pMeshED, NULL,
Indices, nrIndices,
pXYZ, nrPoints);

mdlElmdscr_add (pMeshED);
mdlElmdscr_display (pMeshED, MASTERFILE, NORMALDRAW);

mdlElmdscr_freeAll (&pMeshED);

I would appreciate some advice what to do next.

Thanks

Manko