2 posts
Djordje (djordje) wrote:
I am trying to use SurfaceSplit grasshopper function and divide the execution between my two processor cores. But for some reason, I am getting unexpected result when using parallel.run function. Using just plain "ghcomp.SurfaceSplit(srf,crvs)" returns expected result.
Why is that so?
import ghpythonlib.components as ghcomp
import ghpythonlib.parallel
def srfSplit(curves2):
result = ghcomp.SurfaceSplit(srf,curves2)
if result:
return result
else:
return
if run:
a = ghpythonlib.parallel.run(srfSplit, crvs, True)
else:
a = ghcomp.SurfaceSplit(srf,crvs)
Thank you.
surfaceSplit_parallel.gh (14.9 KB)
surfaceSplit_parallel.3dm (44.6 KB)