Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5750

How to find the Centroid of Set of Points

$
0
0

@Cape_Olive wrote:

I just started learning python scripting and trying to work on relatively easy stuff to practice. So, I imported some points from rhino and I want to find the centroid of the points. I can probably do that in grasshopper in less than 10 seconds but that would defeat the purpose of this. So, I think I brought the points into python by adding "ptList = []", and what would be the next step here? Do I go with something like finding the location of the points first or would I draw a line between the points and find the centroid of that shape? And also what kind of "commands" I would use for that?

Any help is appreciated!

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5750

Trending Articles