You could use a scripting component. Create a vb.net scripting
component and rename x and y inputs to v and c (volume and centroid).
Set both as list, v as a double and c as a 3dpoint. Use the following
code:

    Dim point As on3dpoint = New on3dpoint
    Dim totvol As Double
    For i As Integer = 0 To v.count - 1
      point = point + c(i) * v(i)
      totvol = totvol + v(i)
    Next
    a = point / totvol

Then connect the v and c outputs of the volume component to the v and
c inputs you just created.

On Jan 24, 6:54 pm, postal256 <[email protected]> wrote:
> In Rhino, if you select multiple objects and do volume centroid, it
> puts a point at the center of gravity of the all the objects
> combined.  In grasshopper, the Volume function puts a centroid for
> each individual object.
>
> any way to have it show the combined centroid for multiple objects?

Reply via email to