cell_to_node


Synopsis

convert Cell_Data to Node_Data

Input Ports

in_field

Mesh+Cell_Data

ui_parent

user interface parent object

 

Parameters

Cell Data Components

UIoptionBoxLabel

pick cell data components to convert

Interpolation Order

UIslider

set order of interpolation

 

Output Ports

out_fld

Mesh+Node_Data

out_obj

output renderable object

 

Description

cell_to_node converts Cell_Data to Node_Data. It is necessary to convert cell-based data to node data when the visualization modules or macros selected do not process cell-based data.

Note: All nodes referenced by a cell with a NULL value will have their Node_Data set to NULL.

Inputs Ports

in_field

The input is a field with an unstructured Mesh and Cell_Data.

ui_parent

A port to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.)

Parameters

Cell Data Components

UIoptionBoxLabel. A series of buttons that let you select which components in the input field to convert to Node_Data. You can select multiple components. If the Cell_Data contains multiple cell_sets, the conversion is performed on the specified components in each cell_set.

Interpolation Order

UIslider. An integer that sets the order of interpolation. Allowed values are:

0

averaging. A node's value is computed by averaging values at all adjoining cells.

1-n

A node's value is computed by interpolating values using distances from the node to the adjoining cell centroids.

Output Ports

out_field

The output is a reference to a merged object that contains the new Node_Data, plus the existing Mesh and ell_Data.

out_obj

This is a renderable version of the output field.

Files

v/modules.v

Example

Libraries.Examples.Visualization.Cell_Data
examples/celld.v

See also

extract_cell_component