RhinoScript – Transform coordinate system

As input data I have the models before and after transformation with controllpoints of a NURBS or T-Spline Model. So I have the control polygon (control mesh) and the coordinates of the controlpoints.

Now I have found a similar command to identify the quads, but only with meshes: "rhino.meshfacevertices(number of the face)(Number of the Points of the face corner)" and "rhino.meshvertices(Number of the points)(coordinates)". Do you know a similar command with NURBS control polygons?

are you still working on this one? I think you are absolutely right that the real problem is not the transformation but the identification of the quads. So the question is: What information do you have in your input data? Or do you have the chance to alter the input data to help identify the quads?
Because I think writing an algorithm that takes an arbitray set of points (or lines) and identify quads will be quite an effort. It would be much easier if your input consisted of quads (i.e. closed polylines) right away. Anyway, just my 2 cents...

I have thought about the problem this weekend.
And now I hope I can present it more clearly now. I think the most difficult part of the problem is to find an algorithm, which automatically put 4 points of the 4 corners of a quad. Then a loop calculate for every quad the transformation matrix.

So when I look at the first picture of the previous post, then the algorithm would select 3 times the 4 points of the four quads.

Hello,
I am new with rhino script and I like to programm a command to transform the coordinate system. But what I like to get is the Transformation matrix not the new object in the system. So I bring both objects in Rhino geht all coordinates. Now I have some possibilities. First I take one point of Each object and creat a transformation matrix for one point (but there are more unknownns than equations). Second I take two points of each object and creat a transformation matrix for the edge (there is the same problem like the first possibility). Third one is to take for points of a quad (than I get a system of equation), like in the finite element analysis. My problem now is that I need a command which automatically choose the four corner point of a quad. If you take example of the figure. The command has to choose the control points 1,2,3,5; and than 3,4,7,8 and in the end 4,5,6,7.