geom.edge.dir

Syntax

Vector Access

v = geom.edge.dir(e<,i>)

Get the edge direction. The edge direction is defined from node 1 to node 2.

Returns:

v - direction vector or component

Arguments:

e - edge pointer

i - optional vector component

Component Access

f = geom.edge.dir.x(e)

Get the x-component of the edge direction.

Returns:f - x-component of the direction vector
Arguments:e - edge pointer
f = geom.edge.dir.y(e)

Get the y-component of the edge direction.

Returns:f - y-component of the direction vector
Arguments:e - edge pointer
f = geom.edge.dir.z(e) (3D only)

Get the z-component of the edge direction.

Returns:f - z-component of the direction vector
Arguments:e - edge pointer