ghpythonlib.components.TrimwithBrep and ghpythonlib.components.TrimwithBreps returns empty tuple in Python3, but works in IronPython2.7.
I guess there’s a bug here?
@Petingo_Yang Thanks for testing and sending the example. I am on 8.7 and it is working ok for me. I can see in your script that you are getting result.myattributes and result.myvalues in Python 3 script but printing the result by itself in the python 2 script.
Thanks for your inspection. I printed result.myattributes & result.myvalues because printing result will just show the type of it, i.e. ...namedtuple, and myattributes and myvalues were the only attributes in result.__dict__.
I tried to check for updates, but it says my Rhino is the latest version .
Anyway if it’s working on your side, it’s probably something wrong with my computer / version. I can just work with IronPython for this part.
I’m more curious if there’s an API in RhinoCommon that performs the same as this component, where it takes some curves and breps as parameters and output the trimmed curves labeled inside/outside?