Triangle centroid

14 次查看(过去 30 天)
tomas
tomas 2012-3-20
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 个)

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