Synopsis

PDX_MSGT sgdx_A2PlToGDXMatrix(long option, MDA_PTR a2pl_ptr, GDX_MATRIX gdx_matrix, PDX_BOOL *is_ident_flg)

Purpose

Convert a STEP axis2_placement entity to a GDX Matrix.

Description

This function will evaluate the db_ptr to determine if it is a 2D or 3D and handle accordingly. The vectors P will be calculated and placed into the matrix where they are in column order with P1 being the first column, P2 being the second, P3, the third and the location point being the fourth column. The vectors are unitized.

If the resulting matrix (rotation portion only!) is identity, is_ident_flg is set to PDX_TRUE (and gdx_matrix will contain the identity matrix).

Input

option

Options (not used)

a2pl_ptr

The database pointer of the AXIS2_PLACMENT (2d or 3d)

Output

gdx_matrix

The GDX matrix

is_ident_flg

PDX_TRUE

The GDX Matrix is identity

PDX_FALSE

The GDX Matrix is not identity

Return

      SGDX_NOERR
      Low level error return
      .fi