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".

Reply via email to