Synopsis

PDX_MSGT igeo_GetRotMatrixFromPlaneNorm(long option, double plane_normal[3], IMTH_MATRIX matrix)

Purpose

Get the IGES plane normal plane rotation matrix

Description

Using the plane normal determines the corresponding 3X3 rotation matrix whose inverse can be used to rotate the plane to the XY plane and stores the rotation matrix in the IGES 3X4 matrix with the translation vector set to 0.0.

Input

option

Options (Not used)

plane_normal

The plane normal vector

Output

matrix

The IGES 3X4 matrix with the 3X3 rotation matrix set

Return

      IMTH_NOERR
      Low level error return
      .fi