DVcompute_extent


Synopsis

Computes the extent of a mesh based on the cells of the mesh.

module DVcompute_extent {

     Mesh+Iparam &in {

           nnodes+req;

           coordinates+req;

           coordinates.values+req;

     };

     group+write+nonotify tmp_coord {

           float min_vec[];

           float max_vec[];

     };

 

     group+nonotify out_coord {

           Data_Array+nonotify &coordinates => merge(tmp_coord, in.coordinates);

     };

 

     Mesh+OPort2+nonotify &out => merge(out_coord, in);

 

     method+notify_val+notify_inst upd_compute_extent<status=1> = "DVcompute_extent_update";

};

Description

Computes the extent of a mesh based on the cells of the mesh. After using a module such as select_cells, it is possible to have a mesh that has nodes that are not referenced by any cell. The default values for min_vec and max_vec will use all the nodes of a mesh, including nodes no referenced by any cell. DVcompute_extent will compute min_vec and max _vec by looping over all the cells in the mesh, thus skipping the nodes that are not referenced by any cell. The output is a mesh with the new min_vec and max_vec merged in.

Input Ports

in

Mesh. inputs the mesh

Output

out

Mesh. The output mesh with the new extent information merged in.

Files

v/dv.v