shrink_cells


Synopsis

produce a mesh with cells shrunk relative to their geometric centers

Input Ports

in_field

Mesh

ui_parent

user interface parent object

 

Parameters

shrink cells

UItoggle

shrink cells

shrink factor

UIslider

shrink factor for cells

 

Output Ports

out_fld

Mesh

out_obj

output renderable object

 

Description

The shrink_cells module produces a mesh containing disjoint cells which can be optionally shrunk relative to their geometric centers. It creates duplicate nodes for all cells that share the same node, making them disjoint. If the shrink cells toggle is set, the module computes new coordinates for the nodes based on the specified shrink factor (which specifies the scale relative to the geometric centers of each cell). The shrink factor can vary from 0 to 1. A value of 0 produces non-shrunk cells; 1 produces completely collapsed cells (points). This module is useful for separate viewing of cells comprising a mesh.

Input Ports

in_field

The input must contain any type of mesh.

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

shrink

UItoggle. If off, the output mesh will contain disjoint cells with the same coordinates as the input mesh. If set on, the module computes new coordinates for the nodes based on the shrink factor that specifies the scale relative to the geometric centers of each cell. The default is on.

shrink_factor

UIslider. A float slider to adjust the sizes of the cells. The shrink factor value specifies the scale relative to the geometric centers of each cell. The shrink factor value can vary from 0 to 1, 0 producing non-shrunk cells and 1 producing completely collapsed cells (points). The default is 0.3. The range is 0.0 to 1.0.

Output Ports

out_fld

The output field contains a new mesh that contains disjoint cells shrunk relative to their geometric centers. It also contains a Node_Data and Cell_Data if present in the input mesh.

out_obj

This is a renderable version of the output field.

Example

Libraries.Examples.Visualization.Shrink_Cells
examples/shrink.v

File

v/modules.v

See also

Related modules: