GINO Graphics Suite - GINO v9.0  

gReturnPlanarNormal

Syntax

[C/C++:]
void gReturnPlanarNormal(int npts, GPOINT3 *points, GPOINT3 *normal);
[F90:]
subroutine gReturnPlanarNormal(npts, points, normal)

integer, intent(in) :: npts
type (GPOINT3), intent(in) :: points(*)
type (GPOINT3), intent(out) :: normal

Arguments

npts
Number of vertices in facet/surface

points
Array specifying series of absolute points that define a facet/surface boundary

normal
Returned planar normal

Description

The routine gReturnPlanarNormal() returns a vector representing the planar normal of the vertices passed in the array points. It is assumed that the points in fact lie on a plane, as the routine only uses the first, second and last points passed to calculate the normal vector.

See Also

gReturnPlanarNormal Usage