rblock.facet.closest

Syntax

Vector Access

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

Get the closest point on a facet. The closest point on facet if to the point in space vp is returned. 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 - closest point on facet to vp vector or component

Arguments:

p - rigid block pointer

if - facet number

vp - point

i - optional vector component

Component Access

f = rblock.facet.closest.x(p,if,vp)

Get the x-component of the closest point on a facet.

Returns:

f - x-component of the closest point on facet to vp

Arguments:

p - rigid block pointer

if - facet number

vp - point

f = rblock.facet.closest.y(p,if,vp)

Get the y-component of the closest point on a facet.

Returns:

f - y-component of the closest point on facet to vp

Arguments:

p - rigid block pointer

if - facet number

vp - point

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

Get the z-component of the closest point on a facet.

Returns:

f - z-component of the closest point on facet to vp

Arguments:

p - rigid block pointer

if - facet number

vp - point