Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8532

Rhino.Geometry.Mesh.Split not threadsave?

$
0
0

@clement wrote:

Hi @dale,

is Rhino.Geometry.Mesh.Split a threadsave method ? I have one target mesh which i want to split with other invidual meshes. For each split operation i create a duplicate of the target mesh, then do this simple threaded split:

def MySplitMeshWorker(job):
    rc = Rhino.Geometry.Mesh.Split(job.TargetMesh, [job.CutterMesh])
    job.MeshPieces = rc
        
tasks.Parallel.ForEach(split_job_items, MySplitMeshWorker)

if i run this with 10 jobs, only 6 succeed. If i run it again on the failed 4 ones, 2 work and 2 fail. Splitting individually all works so i asume there must be something wrong.

_
c.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8532

Trending Articles