由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Science版 - Re: 任意形状n多边形的重心
相关主题
图形覆盖与(凸分析).Re: statistics questions.
Re: 帮个忙出个统计的物理题玩吧
Re: A problem about poset!Re: 有没有微分,积分的网址?
Re: 求救Re: 请教统计光学一道题
Re: about euclidean TSP.Re: 积分,积分,积分
Ask a fundamental question: what is an electron?海盗问题
积分求解--谢谢先help with numerical integral transformation
一个关于多边形的问题 ZZ高手们再帮我一把
相关话题的讨论汇总
话题: mass话题: 多边形话题: triangular话题: area
进入Science版参与讨论
1 (共1页)
s*a
发帖数: 33
1
One approach maybe: divide the 多边形 into (n-2) triangulars,
then the mass (area) and the position of the center of mass
of each triangular is known. Now the problem becomes to find
the CM of (n-2) points and could be easily done.
C******a
发帖数: 115
2
假设顶点按某方向排列是(x1,y1),(x2,y2),...,(xn,yn).
令ai=xi*y(i+1)-x(i+1)*yi, Xi=(xi+x(i+1))/3, Yi=(yi+y(i+1))/3.
其中x(n+1)=x1, y(n+1)=y1.
则重心可能是((a1X1+...+anXn)/(a1+...+an), (a1Y1+...+anYn)/(a1+...+an))。
至少在凸多边形且原点在形内时这是正确的。一般情形可能也对,还没证明。
s*a
发帖数: 33
3
The division into triangulars is not a problem. Assume 顶点s are labled
as A1, A2, ..., An. Then can always choose A1A2A3, A1A3A4, ..., A1A(n-1)An.
When calculating the area of each triangular, remember it can be either
positive or negative (based on the particular ordering of the three
end points AiAjAk), which means each triangular can either have a positive
mass or a negative mass. This will take care of 凹多边形.
Of course, if catalina's formula is correct, then that is easier. :)
C******a
发帖数: 115
4
ai是有向三角形((0,0),(xi,yi),(x(i+1),y(i+1))的面积的两倍。
(Xi,Yi)是此三角形的重心。
b***n
发帖数: 6
5

(a1Y1+...+anYn)/(a1+...+an))。
明。
takes
of
Assuming density to be 1, the area under (x1,y1) to (x2,y2) is
integral from x1 to x2: (y2-y1)/(x2-x1) *(x-x1) +y1 dx. Add all them
together is the area, or say mass.
Add a factor x to the integral, we get the x torque to the origin
(0,0), divided by area(mass) is the x cordinate of center of mass.
switch x and y in the result we can get y.

【在 C******a 的大作中提到】
: ai是有向三角形((0,0),(xi,yi),(x(i+1),y(i+1))的面积的两倍。
: (Xi,Yi)是此三角形的重心。

1 (共1页)
进入Science版参与讨论
相关主题
高手们再帮我一把Re: about euclidean TSP.
Re: repost: Integration Help!Ask a fundamental question: what is an electron?
Re: 数学作业积分求解--谢谢先
Re: help: integration一个关于多边形的问题 ZZ
图形覆盖与(凸分析).Re: statistics questions.
Re: 帮个忙出个统计的物理题玩吧
Re: A problem about poset!Re: 有没有微分,积分的网址?
Re: 求救Re: 请教统计光学一道题
相关话题的讨论汇总
话题: mass话题: 多边形话题: triangular话题: area