필터 지우기
필터 지우기

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 CenterFile Exchange에서 Earth, 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