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.
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.
Hi @piac,
I am encountering the same issue descrived before in WIP 7.0.20098.
I am testing if my plug-in Wasp is working in Rhino 7, and I get problems whenever using MeshMeshFast method, with the error:
Solution exception:Value cannot be null.
Parameter name: source
if you have Wasp installed, you can see the error whenever loading a Part component (basically it used MeshMeshFast intersection to check if the collider it generates is valid).
You can see the problem here: 200413_Wasp_rhino7_bug.gh (17.9 KB)
Thanks for looking into this!