Hi,
I’m trying to multithread BrepSurface intersections but I’m unsure if I’m doing it correctly. The results are fine but the processing time is nowhere near what the BrepBrep component achieves. Is there anything I’m getting horribly wrong?
private void RunScript(Brep A, List B, ref object a)
{
object[] arraylist = new object[B.Count];
Parallel.For(0, B.Count, (Index) =>
{
Rhino.Geometry.Intersect.Intersection.BrepSurface(A, B[Index], 0.001, out Curve[] inter, out _);
arraylist[Index] = inter;
});
}