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).
Tags:
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.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by