Grasshopper

algorithmic modeling for Rhino

Extracting mean vector from a collection of vectors

Hello,

I need some help.  I'm trying to get a mean or average single vector from a collection of vectors from a single vertices.  Where i am stuck is organizing the list in a way to connect the relationship between point and the new mean vector.  

Thanks,

Johnson Moc

Views: 2342

Attachments:

Replies to This Discussion

Hello Heinrich,

Thanks i appreciate your assistance.  I was stuck for a couple of hours thinking how to produce this result.  Also David's mass addition worked very well. 

You can use mass addition to add all vectors together, then divide the sum vector by the amount of vectors.

Incidentally, the Average component already works on vectors directly.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service