zone.face.find.normal

Syntax

i := zone.face.find.normal(z,v)

Note

  • In the description below, the following correspondence is assumed between 3D and 2D analysis:
    • 3D zone faces (surfaces) <-> 2D zone edges (lines)

Get the face index of zone z whose outward-facing normal is closest to the direction of v.

Returns:

i - the index of the face whose outward normal is closest to the direction of v (from 1 to 4 in 2D, from 1 to 6 in 3D)

Arguments:

z - a pointer to a zone

v - a vector indicating a direction. This need not be of unit length.