Bug Rhino7 Intersection.MeshMeshFast()


I came across a bug in Rhino.Geometry.Intersect.Intersection.MeshMeshFast(). I am getting the error message

Message: Value cannot be null.
Parameter name: source

I believe that the Intersection.MeshMeshFast() function first calls the new Intersection.MeshMesh() function to set the Polyline source, and on failure returns null. However, the Intersection.MeshMesh() function can complete successfully and return Polyline intersections as null. This then causes the error in Intersection.MeshMeshFast() without it being able to call UnsafeNativeMethods.ON_Mesh_IntersectMesh(). Should be quick to fix.



OK; I noted it. RH-57569.
What version of Rhino WIP are you using?

MeshMeshFast in Rhino 7 will not be any faster than MeshMesh() or MeshMeshPrecise. In fact, it will call MeshMeshPrecise() under the hood.

Hello Giulio @piac

I’m using 7.0.20077.15225, 03/17/2020. I’m not so concerned by the speed, I’m just trying to find a function that gives me a result. So at the moment my script is trying the different Rhino mesh intersections, my own basic mesh intersection, and turning everything into breps and intersecting those, until it has found a result.