geom.poly.normal

Syntax

Vector Access

v = geom.poly.normal(p<,i>)

Get the polygon normal. If not planar, this is the average of each vertex

Returns:

v - polygon normal vector or component

Arguments:

p - polygon pointer

i - Optional vector component that ranges from {3 to 3 in 2D; 1 to 3 in 3D}.

Component Access

f = geom.poly.normal.x(p) (3D only)

Get the x-component of the polygon normal.

Returns:f - x-component of the polygon normal vector
Arguments:p - polygon pointer
f = geom.poly.normal.y(p) (3D only)

Get the y-component of the polygon normal.

Returns:f - y-component of the polygon normal vector
Arguments:p - polygon pointer
f = geom.poly.normal.z(p)

Get the z-component of the polygon normal.

Returns:f - z-component of the polygon normal vector
Arguments:p - polygon pointer