Grasshopper

algorithmic modeling for Rhino

Hi David, I've encountered a small bug in the casting logic of the script components:

When a geometrybase param is supplied with an invalid box, there's an (escalation kind?) of popup exception, that prevents you from validating the data itself. A bit nicer behaviour could perhaps be to pass it as a null value to the script component.

It's a very minor issue, but still, it can be reproduced (see attached).

Views: 743

Attachments:

Replies to This Discussion

Would it be better to have a null, or to cast the Box to a Brep?

Hmm, not quite sure at this point, what could be a consideration for one or the other to be better?

My test here shows that casting it to a brep (at least calling the ToBrep) also returns null. If it's null it's catchable, and seems a good solution to me.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service