yeah I have some more investigation to do on this.
At present, the mesh lights up like a Christmas tree as I hover the mouse
over various control triangles. And it blinks too!
Some control triangles yield no nurbs mesh highlighting, others yield
highlighting of the entire nurbs mesh (though, only, every-other triangle).
Still others, yield a strange strip of triangles; every 3rd or 4th. Soo...
back to the drawing board!
I am thinking, the mapping between input and output meshes is quite simple.
But I could be wrong. I think, I need a very simple ratio in the calculation, where
I determine the orgIndex (original Index, on the control surface), for each individual output
triangle:
orgIndex = ( (ControlSegments_inX) / (NurbsSegments_inX ) ) * Current_Nurb_Index;
So, if the control surface has 4 segments in X, and the nurbs surface has 16 segments in X,
then the ratio is: 0.25.
This means, For every One control surface triangle index, there are 4 nurbs surface triangle indexes.
So let's say we are looking at nurb triangle index #25. And we want to calculate the original element index. This would be:
orgIndex = 0.25 * 25 = 6.25
we drop the decimal portion to get:
orgIndex = 6