I have simplex surface and I need to calculate centroid of different parts of the simplex? The edges are not similar in every side. Screenshots attached.
I have simplex surface and I need to calculate centroid of different parts of the simplex? The edges are not similar in every side. Screenshots attached.
For a closed volume part, one way to do it is to:
Here is an example code.
This is simplex mesh. If I would say, may be all of the simplex cells will not have the same number of edges like 6 or 8. Still is it gonna work with your steps?
Calculating volume of a single cell formed by a single face and arbitrary center will be more complicated than a simple vector cross product, but it should still work.