struct.pos

Syntax

Vector Access

v = struct.pos(p<,i>)

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

i - optional vector component from 1 to 3

Component Access

f = struct.pos.x(p)

Get the x-component position vector, defined as the element centroid.

Returns:f - x-component position vector
Arguments:p - a structural element pointer
f = struct.pos.y(p)

Get the y-component position vector, defined as the element centroid.

Returns:f - y-component position vector
Arguments:p - a structural element pointer
f = struct.pos.z(p)

Get the z-component position vector, defined as the element centroid.

Returns:f - z-component position vector
Arguments:p - a structural element pointer