DVsolid_contour


Synopsis

create multiple 2D or 3D filled contours


module DVsolid_contour {
Mesh+Node_Data+Iparam &in {
xform+nonotify;
nnodes+req;
};
int+Iparam contour_comp;
float+Iparam level[];
Mesh+Cell_Data+Oparam out {
&xform+nowrite => in.xform;
};
method+notify_val+notify_inst solid_contour_update<status=1> =
"DVsolid_contour";
};

 

Description

DVsolid_contour produces solid (filled) contour regions of a given component of an input field. If the input mesh is 2D, the output is similar to contour lines, except the regions between the lines are filled in with a color representing the value of that contour. The output cells are subdivisions of the input cells, cut by the contour lines.

If the input mesh is 3D, the output is a set of 3D cells filling the regions between adjacent isosurfaces. The output cells are, in general, subdivisions of the input cells, cut by the contour surfaces.

The contour levels are defined by the elements of the levels[] array; the number of contours is the size of the array, and each element of the array defines one contour level.

The data value in the output cells is the average of the values of the two contour lines or surfaces bounding that region.

Input Ports

in

Mesh+Node_Data. 2D or 3D input field to be contoured.

contour_comp

int. Select which component of in_field to contour.

level

float[]. Array of levels; a contour will be made at each level.

Output Ports

out

Mesh+Cell_Data. Represents the solid contours. This mesh has the same
dimensionality as the input.

Example

Not available.

File

v/dv.v

See also

Related modules