I used to use ghpythonlib.components
to invoke some Grasshopper functions when they are not offered by rhinoscriptssyntax
, which is efficient. Recently I am trying to develop scripts using C# with VSstudio considering its user-friendly features and constructability(means that I don’t have to write all of the code in a single python file).
While, when I tried to invoke functions of GH components from Rhino.NodeInCode.Components.FindComponent
in Rhinocommon, I could sincerely feel its stalling. Then I tried to write a test program that shows the speed gap between the performance using the similar function in Python and C#. I’d realized the speed of C# should be faster than Python theoretically, I can not understand what’s happening.
Now I suppose I call the Python code directly in C#, and build them together in a battery, so as to solve the efficiency problem. But I haven’t found a relevant method. I hope you can dispel my problem.
4 posts - 2 participants