rblock.facet.centroid

Syntax

Vector Access

v = rblock.facet.centroid(p,if<,i>)

Get the facet centroid. if can take values from 1 to rblock.facet.num. The facets correspond to the entries returned by rblock.facet.map and rblock.vertex.map.

Returns:

v - facet centroid vector or component

Arguments:

p - rigid block pointer

if - facet number

i - optional vector component

Component Access

f = rblock.facet.centroid.x(p,if)

Get the x-component of the facet centroid.

Returns:

f - x-component of the facet centroid vector

Arguments:

p - rigid block pointer

if - facet number

f = rblock.facet.centroid.y(p,if)

Get the y-component of the facet centroid.

Returns:

f - y-component of the facet centroid vector

Arguments:

p - rigid block pointer

if - facet number

f = rblock.facet.centroid.z(p,if) (3D ONLY)

Get the z-component of the facet centroid.

Returns:

f - z-component of the facet centroid vector

Arguments:

p - rigid block pointer

if - facet number