I have a simple cluster that works well if I pass it one data item but when I pass it a list of items it falls apart. The routine takes a closed curve and a reference point and calculates its moments of inertia by breaking the curve into a bunch of mesh boundaries. Simple numerical integration.
When I attach multiple closed curves the problem is that the indices in the two “forks” of the code do not match. The code at the top creates a list of boundary representations. The code at the bottom returns the centroid of the overall bodies. At the point where the two branches of the code merge (see the red circle in the image), I have a list of four points and a tree with four branches of points, where each branch consists of thousands of points representing the centroids of each of the tiny rectangles in the mesh. But the list of four points does not properly correspond to the branches in the tree, if this makes sense.
MOI windblade test RG 29 Feb 20.gh (42.0 KB) cross section exercise blade machine circle example.3dm (18.0 KB)
The cluster is part of a larger routine, attached. The cluster is called “Calc MOI”. I am fairly new to GH so this may be a naive question.