TOC PREV NEXT INDEX

DVthresh_null

Synopsis

remove cells with nodes that contain null data from input field

module DVthresh_null { /* removes cells containing NULL data */
Mesh+Node_Data+Iparam &in { /* input field */
xform+nonotify;
nnodes+req;
};
int+Iparam thresh_component; /* component
to be thresholded */
Mesh+Oparam &out;
Mesh+Node_Data+write+nonotify out_thresh { /* output field */
&xform+nowrite => in.xform;
};
method+notify_val+notify_inst thresh_null_update<status=1>
= "DVthresh_null_update";
};

Description

DVthresh_null removes cells where the selected component's node data is equal to the null data value; if the null_data flag is not set on the input field no processing is done. You would use DVthresh_null, for example, to improve the performance of the renderer when rendering fields with NULL data. While the renderer will automatically delete NULL data cells, it must do so every time the object is transformed. With DVthresh_null as a data "preprocessor," this overhead is removed.

Input

&in

The input is a reference to a field containing any mesh and Node_Data.

thresh_component

An integer. Sets which Node_Data component to use during the search for NULL data. The component can be scalar or vector.

Output

out

The output is a new object. It contains the new unstructured Mesh and its new Node_Data contains all data that is not from a deleted cell.

Example

Libraries.Main.Mappers.thresh_null

File

v/dv.v

modules/thresh0.c

See also

DVset_null

TOC PREV NEXT INDEX