if you've got a solid shape of n points, each points Pi being affected of the mass mi, then the center of the polygon G is defined by the equation:
[Sum(i=0, i<=n) mi ] G = Sum(i=0,i<=n) mi*Pi     ( if Sum(i=0,i<=n) mi != 0)

Dennis Wagner wrote:
Shyam Prakash wrote:

Hello,

            I have a polygon represented by a set of points. Can
somebody tell me how can I calculate the center of gravity of this
polygon.



Thanks

Shyam

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body of the message "signoff JAVA3D-INTEREST". For general help, send
email to [EMAIL PROTECTED] and include in the body of the message
"help".

This is quite simple since it is the barycenter of the polygon if I'm
not totally wrong. You just add all x-ccordinates together and then
divide by the count of Polygons. Same fpr y and z and voila you have
your center...

Greetz...


...Dennis

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



--
D'Amore Jean-Robert
IT Systems
Bell Geospace Ltd.
Unit 5A, Crombie Lodge
Aberdeen A.S.T.P
Balgownie Drive
Aberdeen AB228GU

Tel: +44(0)1224227703
Email: [EMAIL PROTECTED]

=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to