rblock.facet.vertex.pos

Syntax

Vector Access

v = rblock.facet.vertex.pos(p,if,iv<,i>)

Get the facet vertex position. if, the facet number, can take values from 1 to rblock.facet.num. iv, the vertex of the facet, can take values {1 or 2 in 2D; 1, 2 or 3 in 3D}.

Returns:

v - facet vertex position vector or component

Arguments:

p - rigid block pointer

if - facet number

iv - vertex number

i - optional vector component

Component Access

f = rblock.facet.vertex.pos.x(p,if,iv)

Get the x-component of the facet vertex position.

Returns:

f - x-component of the facet vertex position

Arguments:

p - rigid block pointer

if - facet number

iv - vertex number

f = rblock.facet.vertex.pos.y(p,if,iv)

Get the y-component of the facet vertex position.

Returns:

f - y-component of the facet vertex position

Arguments:

p - rigid block pointer

if - facet number

iv - vertex number

f = rblock.facet.vertex.pos.z(p,if,iv) (3D ONLY)

Get the z-component of the facet vertex position.

Returns:

f - z-component of the facet vertex position

Arguments:

p - rigid block pointer

if - facet number

iv - vertex number