Skip to content

(Python) Is there a means to compute the centroid of a triangulated volume / mesh? #4830

Answered by Grantim
bardiche89 asked this question in Q&A
Discussion options

You must be logged in to vote

Sure, there was findCenterFromFaces() which should be equal to getCenteredCovarianceEigen result.

assuming no density variance

Face areas in this method are considered as weights, so it should work fine even if triangulation is not uniform.

I had another question about finding the closest surface triangle of the mesh entity to a point. Do you have any advise on how to approach this one?

I think you need findProjection function

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@bardiche89
Comment options

@Grantim
Comment options

Answer selected by bardiche89
@bardiche89
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants