rblock.facet.normal

Syntax

Vector Access

v = rblock.facet.normal(p,if<,i>)

Get the facet normal. if can take values from 1 to rblock.facet.num. The facets correspond to the entries returned by rblock.facet.map and rblock.vertex.map.

Returns:

v - facet normal vector or component

Arguments:

p - rigid block pointer

if - facet number

i - optional vector component

Component Access

f = rblock.facet.normal.x(p,if)

Get the x-component of the facet normal.

Returns:

f - x-component of the facet normal vector

Arguments:

p - rigid block pointer

if - facet number

f = rblock.facet.normal.y(p,if)

Get the y-component of the facet normal.

Returns:

f - y-component of the facet normal vector

Arguments:

p - rigid block pointer

if - facet number

f = rblock.facet.normal.z(p,if) (3D ONLY)

Get the z-component of the facet normal.

Returns:

f - z-component of the facet normal vector

Arguments:

p - rigid block pointer

if - facet number