mi32/trans3d.h File Reference
<mi32/trans3d.h>
More...
#include <mi32/stddefns.h>
Go to the source code of this file.
Classes |
| class | TRANS3D |
| | TRANS3D class. More...
|
Defines |
| #define | GEOMLIBCLASSEXPORT MI_DLLCLASSIMPORT |
| #define | GEOMLIBEXPORT MI_DLLIMPORT |
Functions |
| GEOMLIBEXPORT int | FindBestTrans3D (int NumPoints, const CTRLPOINT3D *cp, MAT4X4 forward, MAT4X4 inverse) |
| GEOMLIBEXPORT int | FindBestTrans3D3 (int NumPoints, const CTRLPOINT3 *cp3, MAT4X4 forward, MAT4X4 inverse) |
| GEOMLIBEXPORT void | trans3d (double ix, double iy, double iz, MAT4X4 TransMat, double *ox, double *oy, double *oz) |
| GEOMLIBEXPORT void | trans3dinit (MAT4X4, MAT4X4) |
| GEOMLIBEXPORT void | trans3drot (MAT4X4 m, MAT4X4 n, double z_axis, double x_axis, double y_axis) |
| GEOMLIBEXPORT void | trans3dscale (MAT4X4 m, MAT4X4 n, double sx, double sy, double sz) |
| GEOMLIBEXPORT void | trans3dshift (MAT4X4 m, MAT4X4 n, double dx, double dy, double dz) |
Detailed Description
<mi32/trans3d.h>
Definitions for 3-D transformation functions This header file requires C++
Define Documentation
| #define GEOMLIBCLASSEXPORT MI_DLLCLASSIMPORT |
| #define GEOMLIBEXPORT MI_DLLIMPORT |
Function Documentation
Function prototypes.
FindBestTrans3D - Find "best" 3-D affine transformation given set of control points
- Parameters:
-
| NumPoints | Number of control points |
| cp | Set of control points |
| forward | Transformation matrices |
FindBestTrans3D3 - Find "best" 3-D affine transformation given a CTRLPOINT array.
- Parameters:
-
| NumPoints | Number of control points |
| cp3 | Array of control points |
| forward | Transformation matrices |
| GEOMLIBEXPORT void trans3d |
( |
double |
ix, |
|
|
double |
iy, |
|
|
double |
iz, |
|
|
MAT4X4 |
TransMat, |
|
|
double * |
ox, |
|
|
double * |
oy, |
|
|
double * |
oz | |
|
) |
| | |
Perform 3-D affine transformation on a point.
- Parameters:
-
| ix | Input x |
| iy | Input y |
| iz | Input z |
| TransMat | Transformation matrix |
| ox | Output x |
| oy | Output y |
| oz | Output z |
Initialize 3-D affine transformation.
| GEOMLIBEXPORT void trans3drot |
( |
MAT4X4 |
m, |
|
|
MAT4X4 |
n, |
|
|
double |
z_axis, |
|
|
double |
x_axis, |
|
|
double |
y_axis | |
|
) |
| | |
Apply rotation to a 3-D affine transformation.
- Parameters:
-
| m | Matrices of transformation |
| z_axis | X axis |
| x_axis | Y axis |
| y_axis | Z axis |
| GEOMLIBEXPORT void trans3dscale |
( |
MAT4X4 |
m, |
|
|
MAT4X4 |
n, |
|
|
double |
sx, |
|
|
double |
sy, |
|
|
double |
sz | |
|
) |
| | |
Apply a scale change to a 3-D affine transformation.
- Parameters:
-
| m | Matrices of transformation |
| sx | X scale |
| sy | Y scale |
| sz | Z scale |
| GEOMLIBEXPORT void trans3dshift |
( |
MAT4X4 |
m, |
|
|
MAT4X4 |
n, |
|
|
double |
dx, |
|
|
double |
dy, |
|
|
double |
dz | |
|
) |
| | |
Apply offsets to a 3-D affine transformation.
- Parameters:
-
| m | Matrices of transformation |
| dx | X offset |
| dy | Y offset |
| dz | Z offset |