MeshCellCentroid

MeshCellCentroid

is an annotation of MeshRegion and BoundaryMeshRegion objects that gives the centroids of mesh cells.

Details

Examples

open allclose all

Basic Examples  (2)

Find the centroids for the cells in a BoundaryMeshRegion object:

Get the edge centroids:

Display the centroids:

Find the centroids for the cells in a MeshRegion object:

Get the face centroids:

Display the centroids:

Scope  (1)

Cell indices can be used to get MeshCellCentroid:

Get the centroid of the second, third, and fourth faces:

Display them:

Properties & Relations  (1)

RegionCentroid is equal to a weighted sum of the highest-dimensional cell centroids:

The weight for each cell is its proportion of the total measure:

Possible Issues  (1)

MeshCellCentroid cannot be modified:

Introduced in 2014
 (10.0)