Find a middle point amid a group of 3D nodes?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Macryc

Hi. How would you go about finding a middle point amid a group of nodes in 3D. Kind of like a half-way point between 2 nodes but with multiple nodes?

:bust_in_silhouette: Reply From: jujumumu

You can just take the average of the position of all the nodes. For example if your 3 nodes are located at (0,2,1), (1,0,2), (-1,1,0) the middle point would be ((0+1-1)/3, (2+0+1)/3, (-1+1+0)/3)=(0,1,0) Hope this answered your question.

this is more or less what I had in mind… I’ll give it a try, thanks!

Macryc | 2020-07-09 07:42