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
Unknown said: I want to extract mesh boudary as LineString
mdlMesh_convertToShapes may do what you want, although I don't fully understand the conditions under which it will produce a single shape.
Otherwise, you'll need to traverse the face loops of the mesh. Each internal facet will have boundaries that are shared with other facets. Each external facet will have one boundary that is not shared: you need to collect those to make up a line-string.
Regards, Jon Summers LA Solutions
Hi Jon,
Thanks for reply.
As far as I can see there is no mdlMesh function that extracts mesh boundary and gives single shape(lineString) as result.
I'll try function that you suggested.
Manko.
Answer Verified By: Manko
Manko, to get boundary of mesh do following:
HTH
Thank you , very much, DanPaul