[MOAB-dev] Mesh Element Center Coordinates

Vijay S. Mahadevan vijay.m at gmail.com
Mon Feb 6 19:37:46 CST 2023


You should be able to just pass in element entity handles to get_coords and
get the centroid directly. It already computes the vertex averages for you.

Vijay


On Mon, Feb 6, 2023, 16:58 Kevin McLaughlin <mclaughlink at fusion.gat.com>
wrote:

> Hello,
>
> Is there an easy way to get the center coordinates of mesh elements from a
> MOAB mesh? I could write a script to parse the data and find the average
> x,y,z coordinates of each node, or something like that, but I'm wondering
> if a functionality like that already exists.
>
> Thank you for your help!
>
> Best,
>
> Kevin McLaughlin
> office: 858-455-3641
> mclaughlink at fusion.gat.com
>


More information about the moab-dev mailing list