TOC PREV NEXT INDEX

DVsurf_ribbons

Synopsis

create "height surfaces" of a 2D field that are continuous along one axis but discontinuous along the other

module DVsurf_ribbons {
Mesh_Unif+Dim2+Node_Data+Iparam &in {
xform+nonotify;
nnodes+req;
dims+req;
};
int+IPort2 ribbon_dir;
int+IPort2 height_comp;
int+IPort2 map_comp;
float+IPort2 scale;
float+IPort2 offset;
Mesh+Node_Data+Oparam out {
&xform+nowrite => in.xform;
};
method+notify_val+notify_inst surf_ribbons_update<status=1>
= "DVsurf_ribbons_update";
};

Description

DVribbons_plot creates height surfaces of a 2D field by treating the values of a component of that field as height above the surface of the field, and the values of another component as color to be applied. The surfaces so created are continuous along one axis (selectable as X or Y) and discontinuous along the other axis, so they look like a set of colored ribbons draping over a surface.

Input

in_field

Mesh_Unif+Node_Data. The ribbon plot is built on this mesh, using the node data values as heights.

ribbon_dir

int. Selects which direction (X or Y) the ribbons should run in.

height_comp

int. Which node data component to map to ribbon height.

map_comp

int. Which node data component to map to ribbon color.

scale

float. This scale factor is applied to the data values to convert them into heights above the mesh.

offset.

float. This offset is added to the heights to offset the ribbons from the surface of the field

Output

Out

Mesh+Node_Data. Contains the generated ribbons.

Example

Libraries.Main.Mappers.surf_plot

File

v/dv.v

See also



TOC PREV NEXT INDEX