show/hide this revision's text 3 added 4 characters in body

Given a list of 3D coordinates that define the surface( Point3D1, Point3D2, Point3D3, and so on), how to calculate the centroid of the surface?

More specifically, I am looking for a natural extension of the following 2D centroid algorithm in 3 or more dimension:

alt text alt text

alt text

Any idea?

P/S: All the points are coplanar, this is the assumption.

show/hide this revision's text 2 added 62 characters in body

Given a list of 3D coordinates that define the surface( Point3D1, Point3D2, Point3D3, and so on), how to calculate the centroid of the surface?

More specifically, I am looking for a natural extension of the following 2D centroid algorithm in 3 or more dimension:

alt text alt text

alt text

Any idea?

P/S: All the points are coplanar, this is the assumption.

show/hide this revision's text 1

Compute the Centroid of a 3D Planar Polygon

Given a list of 3D coordinates that define the surface( Point3D1, Point3D2, Point3D3, and so on), how to calculate the centroid of the surface?

More specifically, I am looking for a natural extension of the following 2D centroid algorithm in 3 or more dimension:

alt text alt text

alt text

Any idea?