I took this change as impetus to write a new point-mesh collider:
Solid_pt_newCollide.gh (44.0 KB)
(you’ll need to set the referenced assembly location of KangarooSolver.dll when you open it - usually this will be in
C:\Program Files\Rhino 6\Plug-ins\Grasshopper\Components
if you are on 6, or
C:\Program Files\Rhino WIP\Plug-ins\Grasshopper\Components
if you are using the WIP)
This scripted version uses a slightly different approach to before, so it doesn’t need the inside check that was causing problems. It seems from some rough testing that this new one is actually even faster than it was before the problems.
Another advantage is that now the mesh doesn’t have to be closed.
If you do have an open mesh, points will be able to move around the boundary to either side of the surface, but if you are using it in conjunction with a ground plane as shown in the attached example, this won’t be an issue.