DVext_face


Synopsis

extract external faces of a field for faster rendering


group DVext_face {
Mesh+Iparam &in { /* input field */
xform+nonotify;
nnodes+req;
};
Cells+Oparam out_cells {
*cell_set[];
ncell_sets => array_size(cell_set);
};
Cells+Cell_Data+write+nonotify out_sets;

Mesh+OPort2+nonotify &out => merge(out_cells, in);
method+notify_val+notify_inst upd_face = "face";
};

Description

DVext_face produces a mesh that represents just the exterior, visible faces of an unstructured mesh. It saves memory and greatly speeds rendering because all of the unstructured mesh's many interior, hidden nodes and cells are not represented.

Input

&in

A reference to an input unstructured mesh (mesh type Mesh). All other objects are ignored. Structured meshes (Mesh_Struct, Mesh_Rect, etc.) will be accepted but are converted to unstructured during execution.

Output

out_cells

An array of cell_sets whose contents are the unstructured Mesh that represents the field's external faces. This output is not normally used. Use the output below instead.

out

The output is a reference to a merged object that is a combination of the new unstructured Mesh of the input mesh's exterior faces, divided into cell sets, and the input field's Mesh.

Files

v/dv.v
modules/ext_face.c

Example

Libraries.Main.Mappers.external_faces

See also