フィルターのクリア

Triangle centroid

17 ビュー (過去 30 日間)
tomas
tomas 2012 年 3 月 20 日
回答済み: Zhenren Yang 2016 年 5 月 9 日
Hello, do you somebody know any simlpe method how to find the triangle centroid (or geometric barycenter) in 3D?
Thanks a lot,
Tom

採用された回答

Jonathan Sullivan
Jonathan Sullivan 2012 年 3 月 20 日
Just average all the coordinates. For example, if you have a vector containing x coordinates and a vector containing y coordinates, you can find it in the following manner.
x = rand(3,1); % x-coordinate
y = rand(3,1); % y-coordinate
x_centroid = mean(x);
y_centroid = mean(y);
  1 件のコメント
tomas
tomas 2012 年 3 月 20 日
Hmm, that's very simple :-)
Thanks

サインインしてコメントする。

その他の回答 (1 件)

Zhenren  Yang
Zhenren Yang 2016 年 5 月 9 日
hi, have you get the code that can find the barycenter of 3d (stl,ply)?

カテゴリ

Help Center および File ExchangeEarth, Ocean, and Atmospheric Sciences についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by