My current code is about the same as that, following the reference code in the MXS Help.
But using that code on an EPoly Mesh, even a Teapot, in realtime, causes a 0.5-1 second delay.
Well, or at least 0.5 delay. The other 0.4+ is from me using the convert BorderEdges FromFaces EditablePoly method.
Exploring what Dennis said, this code I have I think is getting me there. Or giving me an idea.
vertArrs = #()
faces = ($.mesh.faces as BitArray)
for i = 1 to (faces as array).count do
verts = meshop.getMapFace $.mesh 1 i
append vertArrs #(verts,i)
Which then returns, on my plane mesh, something like:
So, I think I need to sort those somehow, to see if any of the arrays contain the same map verts.
So Face 1, it has a shared Vert (4), in Face 5, which is correct, according to my mesh.
So from that I could then group those into seperate Arrays, or Element Arrays. So it should be something like:
I think this is correct??