POLY_MERGE Procedure

Merges two vertex lists and two polygon lists together so that they can be rendered in a single pass.

Usage

POLY_MERGE, vertex_list1, vertex_list2, polygon_list1,
polygon_list2, vert, poly, pg_num

Input Parameters

vertex_list1 — The first vertex list.

vertex_list2 — The second vertex list.

polygon_list1 — The first polygon list.

polygon_list2 — The second polygon list.

Note:

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

Output Parameters

vert — A new variable consisting of vertex_list1 and vertex_list2 merged together.

poly — A new variable consisting of polygon_list1 and polygon_list2 merged together and modified so that it is compatible with vert.

pg_num — The total number of polygons in the merged list.

Keywords

Edge1 — A vector containing the edge colors for the first polygon list.

Edge2 — A vector containing the edge colors for the second polygon list.

Edge_List — The edge colors for the merged list.

Fill1 — A vector containing the fill colors for the first polygon list.

Fill2 — A vector containing the fill colors for the second polygon list.

Fill_List — The fill colors for the merged list.

Opaque1 — A vector containing the translucency factors for the first polygon list. (A translucency factor of 0 is completely clear. The higher the translucency factor, the more opaque the polygon.)

Opaque2 — A vector containing the translucency factors for the second polygon list.

Opaque_List — The translucency factors for the merged list.

Discussion

The merged lists returned by POLY_MERGE are suitable for input into
POLYSHADE or POLY_PLOT, where they may be rendered in a single pass.

Example

See the sphere_demo3 demonstration program in:

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

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

See Also

POLY_PLOT,  POLYSHADE