Grasshopper

algorithmic modeling for Rhino

Creating or just re-saving a file in GH for Rhino 6 WIP makes it impossible to open the file in 0.9.0076 for Rhino 5.

Rhino get´s stuck in not responding and CPU and Memory consumption raises, but nothing happens.

Nevertheless I can copy-past from one instance to another.

When trying to nail down the problem, I couldn´t.

But I think it has something to do with internalised Breps. At least those end up as Null Breps, when opening the file in Gh for Rh5. My assumption is a lot of internalised Breps just cause a lot of problems downstream and this way it takes forever to load the file.

Views: 1459

Attachments:

Replies to This Discussion

It could be a problem with V4 versus V5 versus V6 opennurbs data. When Grasshopper switched from Rhino4 to Rhino5, I think the opennurbs versioning format was initially kept specifically at V4 to ensure compatibility of files, but I can't remember all the changes that were made to this over time.

At the moment geometry is serialized using Opennurbs 5.0, but if that fails Opennurbs 6.0 is used instead. It would fail for types that didn't exist in ON5, such as sub-d objects or n-gon meshes, but it may also fail under other conditions, specifically when bad/corrupt geometry is involved.

Deserialization is the mirror image, first data is read using an ON6 filter, if that fails an ON5 one, and if that fails an ON4 one. But this is obviously code that is new to Grasshopper in Rhino6, as earlier versions would not have been able to try and read ON6 flavour data. 

It is surprising that copy-paste and save-open would work differently, they're supposed to use the exact same code throughout. Unfortunately I don't even have Rhino5 any more, but no doubt someone else in McNeel can help me debug this. I may also have to talk to Steve Baer and Dale Lear to see what information (if any) we can harvest from an OpenNurbs byte-array supposedly representing some shape without trying to construct an actual instance (which may fail).

Hi David,

edit: copy and paste does not work. Even if I create the brep in gh for rh6 right away it ends up as Null Brep in gh for rh5:

Thanks for looking into it.

Best,

phillip

Ok at least that's consistent.

Hi, do you know if this has been resolved by now?  I checked the latest change log, but could not find any comments. Thanks, p

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service