CreatePolyList

Synopsis

CreatePolyList creates the poly_connect_list for a polyline mesh. It searches the input id_array array looking for common ids. If the id number changes while searching down the array, the start and end indices are stored and the number of polylines incremented.


module CreatePolyList <src_file = "cr_polyl.cxx"> {
  int+IPort2 id_array[];
  int+OPort2 num_polys;
  int+OPort2 poly_connect_list[]; 
  cxxmethod+notify_inst+req update(
    .id_array+read+notify+req,
    .num_polys+write,
    .poly_connect_list+write
  );
};

Description

This modules uses an id array that contains the index to which polyline a given point belongs. The output of the module is a list of polylines where only the index of the start and end point of each polyline is given.

Inputs

id_array[]

This array stores for each point to which polyline it belongs.

Outputs

num_polys

number of polylines in the polyconnect list.

poly_connect_list[]

The list of start and endpoints of the polylines.

Files

iac_proj/cr_polyl/crplmods.v contains the CreatePolyList modules V definition.

Other Notes

The low-level CreatePolyListMods library containing the module CreatePolyList does not specify a process. By default the express process will be used.

Authors

Brian Selle, Leon Thrane, Advanced Visual Systems Inc.
Documentation - Ian Curington, Advanced Visual Systems Inc.

Modifications

Paul G. Lever

Contact

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