struct.node.pos

Syntax

v = struct.node.pos(sn<,i>)

Get the current position vector for the structure node. Returns a vector, unless an optional component argument i is supplied, in which case it returns the component value.

Returns:

v - current position vector or component

Arguments:

sn - structure node pointer

i - optional vector component, from 1 to 3

Component Access

f = struct.node.pos.x(sn)

Get the x-component current position vector of the structure node.

Returns:f - x-component current position vector
Arguments:sn - structure node pointer
f = struct.node.pos.y(sn)

Get the y-component current position vector of the structure node.

Returns:f - y-component current position vector
Arguments:sn - structure node pointer
f = struct.node.pos.z(sn)

Get the z-component current position vector of the structure node.

Returns:f - z-component current position vector
Arguments:sn - structure node pointer