ConvertConnectList

Synopsis

Converts from an AVS5 style poly connect list to an AVS/Express style poly connect list. The AVS5 list is broken up into two lists - one which contains the header information and the other contains the data.

Input Ports

Name Type Description

input int [] Array of the AVS 5 style poly connect list.

Output Ports

Name Type Description

poly_nodes int[] Array header information.
connect_list int[] Contents of array.

Description

This project contains a definition of a module which converts an AVS 5 style poly connect list to an AVS/Express style list. An AVS 5 poly connect list looks like:

| Size (i.e. 4) | 1 | 2 | 3 | 4 | Size (i.e. 3) | 1 | 2 | 3 | Size | . . . |

where the header information and contents are all contained in the same array.

In AVS/Express poly connect lists are split into two. One list contains the poly_nodes - the header information:

| 4 | 3 | . . . |

and the second list contains the connect list or data:

| 1 | 2 | 3 | 4 | 1 | 2 | 3 | . . . |

At the same time the indexing is changed from 1 based to 0 based for the connect values.

So the new connect list will look like:

| 0 | 1 | 2 | 3 | 0 | 1 | 2 | . . . |

Inputs

input

An integer array which contains the AVS5 style poly connect list as described above.

Outputs

poly_nodes

An integer array which contains the details i.e., sizes of the connect_list data arrays.

connect_list

An integer array which contains the data points of the poly connect list.

Utility Macros

The ConvertConnectListFunc functional macro uses the ConvertConnectListCore low-level module. The ConvertConnectList user macro uses this functional macro.

Files

iac_proj/cvtclst/clst_mods.v contains the V definitions of the ConvertConnectListCore module.

iac_proj/cvtclst/clst_macs.v contains the V definitions of the ConvertConnectListFunc functional macro and the ConvertConnectList user macro.

Author

Dave Goughnour
Advanced Visual Systems

Modification

Mary McDerby,
Manchester Visualization Centre

Tobias Schiebeck,
International AVS Centre

Contact

International AVS Centre
Manchester Visualization Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
United Kingdom
M13 9PL