![]() |
![]() |
![]() |
![]() |
DVisoline
Synopsis
create contour lines of constant value
module DVisoline { /* creates lines of constant value */
Mesh+Node_Data+Iparam &in { /* input field */
xform+nonotify;
nnodes+req;
};
int+Iparam component;
float+Iparam level[]; /* isoline level */
int+Iparam color; /* toggle for colored lines */
Mesh+Node_Data+Oparam out { /* output field */
&xform+nowrite => in.xform;
};
method+notify_val+notify_inst isoline_update<status=1>
= "DVisoline_update";
};Description
DVisoline creates contour lines of a given level value in a 2D field. The contour lines can be colored by the level value. The selected component must be scalar.
Input
The input is a reference to a field with a 2D mesh and Node_Data. The mesh can be of any defined type (Mesh, Mesh_Struct, Mesh_Unif, Mesh_Rect). However, the mesh must be 2D (nspace = 2 in .
fields, cell_ndim = 2 in unstructured fields). No checking is done to ensure that the mesh is 2D. 3D meshes will not generate output. The Node_Data must have a single scalar component.
A float. Sets the isoline level. The data type is converted to the data type of the input field prior to use.
Output
The output is a new object that contains an unstructured Mesh of cell type Line that represents the contour lines. The value of the Node_Data is the level value.
For each "cell" of the 2D field, a straight line is created connecting locations on the cell's edges with an interpolated value equal to the level. The interpolation is linear.
Example
Libraries.Main.Mappers.isoline
File
See also
![]() |
![]() |
![]() |
![]() |