Borrar filtros
Borrar filtros

Triangle centroid

28 visualizaciones (últimos 30 días)
tomas
tomas el 20 de Mzo. de 2012
Respondida: Zhenren Yang el 9 de Mayo de 2016
Hello, do you somebody know any simlpe method how to find the triangle centroid (or geometric barycenter) in 3D?
Thanks a lot,
Tom

Respuesta aceptada

Jonathan Sullivan
Jonathan Sullivan el 20 de Mzo. de 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);
  1 comentario
tomas
tomas el 20 de Mzo. de 2012
Hmm, that's very simple :-)
Thanks

Iniciar sesión para comentar.

Más respuestas (1)

Zhenren  Yang
Zhenren Yang el 9 de Mayo de 2016
hi, have you get the code that can find the barycenter of 3d (stl,ply)?

Categorías

Más información sobre Spatial Search en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by