BHoM / Rhinoceros_Toolkit

Set of functionalities for communication with Rhinoceros
GNU Lesser General Public License v3.0
6 stars 2 forks source link

Rhinoceros_Toolkit: Preview of invalid mesh crashes Rhino #160

Closed pawelbaran closed 4 years ago

pawelbaran commented 4 years ago

Description:

When the face is clicked in first, Rhino crashes: RevitAdapter

My gut feeling is that this is a preview issue, but please do not get suggested 🙊

Test file(s):

On SharePoint.

adecler commented 4 years ago

It is indeed a preview issue. The code crashes at this line when in the output parameter for teh mesh:

image

The problem is that a try-catch doesn't prevent the crash as it happens in Rhino and not Grasshopper.

So this needs to be fixed in Rhinoceros_Toolkit by making sure a face is created only when it can find the corresponding vertices.

I'll transfer this issue to Rhinoceros_Toolkit and will PR a solution soon.