Possibility to multithread with Pixyz API in Python script?

Hello community,

is it possible to do some multithreading with the Pixyz API in a Python script? Like: I have a huge list of occurences and want to add some offsets to their part’s mesh vertices. Can I maybe split the list and hand over the function to multiple threads?

Regards

Yes you can. But most API functions are already highly multi-threaded (including algo.vertexOffset), so no need to call them on different threads. It will likely be less performant and might cause concurrency issues (e.g if two calls modify the same mesh).

1 Like