I am in the process of converting an old plugin that was written with the Rhino.NET SDK for Rhino 4 to Rhino 5. Since I had to remove the dependency on external libraries I thought I could go with the Rhino Commons since this will be the future.
In the old Plugin I was using the method RhUtil.RhinoProjectPointsToBreps quite often. As far as I see, there ist only the method Rhino.Geometry.Intersect.Intersection.ProjectPointsToBreps in the RhinoCommons SDK.
I am missing two big advantages of the old method:
a) It gave me information about the points that were successfully projected (a whole array of indices). Now I have to figure myself which points where successfully projected.
b) It was much faster. On my computer about 15000 projections per second versus 1300. That is more the ten times slower.
Can you give any suggestion for fast point projection with Rhino 5 and RhinoCommons? Should I use the RayShoot method? Is it as accurate? Do you have sample code to o preliminary bounding box checks in case the ray does not hit any surface?
What projection method is used by the CAM software based on Rhino, by the way?
Thank you very much. I appreciate any help.