Kangaroo - TriReMesh - Object reference not set to instance object

Hello! Trying to sort a problem with Grasshopper… TriRemesh is not functioning properly… I have a friend that can run this script just fine on his computer.
Final Script.gh (144.2 KB)
model.3dm (17.1 MB)

See image below trying to tie simple geometry to TriRemesh with failure… I uploaded the full script if anybody can help out with this. Thank you in advance!!

Hi @zacharys

It will accept closed curves as input - it looks in your screenshot example like you’re giving it an open one. (The error message in this case could certainly be made more informative though)

In your actual file, there’s a different issue, it seems the problem is just with the first curve in the list. It is closed, but there’s something about it which is throwing off the remesher. TriRemesh uses the standard Rhino mesher as a starting point, but if this has some extremely bad triangles it looks like it can still break.
Here it can be fixed by providing custom meshing settings for this initial mesh step:
image

Final Script.gh (148.8 KB)

1 Like

Daniel! Thank you so much. MVP.

1 Like