algorithmic modeling for Rhino
Hello Everyone,
I’am trying to use the GH Python Library to intersect many lines with a brep.
The node I wrote in Python seems to work : I get the “Execution completed successfully” message… But the result is not good! In fact I got no results :it doesn’t find any points. On the other hand the grasshopper Brep l Curve node works well but I need to get that in Python.
I tried all the function that could work in my case without any luck (surfacexlines, brep x curves…)
It seems all those command are recognized but nothing gets out…
If anybody has any idea of what is going on, that would be of great help!
Thank you in advance,
import ghpythonlib.components as ghcomp
import ghpythonlib.parallel
result=ghcomp.BrepXLine(Sol, Lins)
print result
Ptint = result.points
Maybe those components aren't supported by ghpythonlib?
If so, is it normal that I get no error message?
Patrick
PS :
My goal is to use parallel.run on it (I have a huge surface with about a thousand lines to intersect), which explains the third node.
I have use parallel.run before but on functions with examples on the forum.
Tags:
Ok it seems I sorted this out !!!
I just defined the "type hint" at the entry of my node and now even the parallel run works...
I know, this is ridiculous.
Just in case you'll find the file that works enclosed, I hope this can help other people.
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