struct.pos

Syntax

v = struct.pos(p)

Get the position vector of the element, defined as the element centroid. Returns a vector, unless an optional component argument i is supplied, in which case it returns the component value.

Returns:v - position vector or component
Arguments:p - a structural element pointer