Hello, I have a question regarding RhinoScript:
I’m successfully using Excel + VBA + RhinoScript (Rhino version 6) in the field of the hydraulic design of water turbines and pumps.
However, I have a procedure where I need the (u,v) parameters of a large set of points (could be more than 10000 points) of the closest point on a surface.
This works well, but unfortunately the procedure is currently very slow.
The code that slows down the whole application is mainly one loop:
For i = 0 To nBound arrParam(i) = Rhino.SurfaceClosestPoint(strSurface, arrPoints(i)) Next
Is there a possibility to speed up this loop for large number of points?
Remark: I often use the Command: _PointDeviation to verify my results (which is a very similar task).
There I see, that Rhino can handle also very large number of points very fast but I could not figure out how to do the same thing in RhinoScript …
Thanks a lot for your support,