POLY_TRANS Function

Returns a list of 3D points transformed by a 4-by-4 transformation matrix.

Usage

result = POLY_TRANS(points, trans)

Input Parameters

points — A (3, n) array of points (or vertices) to transform.

trans — A (4, 4) array to transform the points with.

Returned Value

result — A list of 3D points transformed by a 4-by-4 transformation matrix.

Keywords

None.

Discussion

You can use the T3D,  CENTER_VIEW,  SET_VIEW3D, and VIEWER procedures to build the transformation matrix. The 4-by-4 matrix most often used is the system viewing matrix !P.T. For more information, see the PV‑WAVE User Guide.

Example

See the POLY_DEV Function Example section.

For other examples, see the sphere_demo2, sphere_demo3, and vol_demo4 demonstration programs in:

<wavedir>/demo/arl
<wavedir>\demo\arl

Where <wavedir> is the main PV-WAVE directory.

See Also

POLY_DEV,  POLY_NORM

For more information, see the PV‑WAVE User Guide.