Grasshopper solid difference

I need a Pythion script to speed up the solid difference process. I cannot create it in Python 3 (Rhino 8 Mac). I’ve found this script from Gijs that works well but is older. Is it possible to convert it to the new Python 3 (just to precision because it seems to be working well like this, anyway)?

Solid difference pythin script issue.gh (121.2 KB)

Hi @lopez give this thread a look.

Hi Michael,

Thanks for your message. Mysteriously, this is the result here: 1 sec for both solutions!

Could no one create the script in Python 3 or IronPython?

I had it coded in Python 3 originally but migrated to C#.

Multi-threading isn’t always faster but you should see significant performance on longer lists and with multiple processors.

In example, a data tree of 30 items each with 10 branches won’t be much faster but processing the list flattened as 300 items against a non multi-threaded version should be faster.

Also if you can manage to pre organize your data tree so that objects that have no business touching are in separate branches. That can help speed it up too

Do You think You could share the Python script?

I’ll see if I can find it yes

thanks

No one can update this simple script to the Rhino 8 (Mac, in my case) release?
Any help will be appreciated; thanks.

I figured it would be just a copy/paste but I’m not sure what this error is:

  1. Error running script: No method matches given arguments for ProxyObjectTable.Delete: (<class ‘Rhino.Geometry.Brep’>, <class ‘bool’>) [903:1]

the only thing related to boolean that comes to my mind is adding something like delete_input = True or False, just to see if it’s working?

https://developer.rhino3d.com/api/RhinoScriptSyntax/#surface-BooleanDifference

[edit] ok, this is weird :slight_smile: works with False, not with True (which is also by default)

1 Like