Triangle centroid
27 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
tomas
le 20 Mar 2012
Réponse apportée : Zhenren Yang
le 9 Mai 2016
Hello, do you somebody know any simlpe method how to find the triangle centroid (or geometric barycenter) in 3D?
Thanks a lot,
Tom
0 commentaires
Réponse acceptée
Jonathan Sullivan
le 20 Mar 2012
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);
Plus de réponses (1)
Zhenren Yang
le 9 Mai 2016
hi, have you get the code that can find the barycenter of 3d (stl,ply)?
0 commentaires
Voir également
Catégories
En savoir plus sur Spatial Search dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!