Offset


Synopsis

Deforms the shape based on the vector data at the node

Input Ports

in_field

Mesh + Node_Data

ui_parent

user interface parent object

 

Parameters

data_component

UIradioBoxLabel

vector data used to change the shape

Factor slider

UIslider

deformation factor

Offset Scale

UIfield

scale factor(zoom-up) for deformation

Scale Data

UItoggle

The output data is multiplied by the value of Factor slider

 

Output Ports

out_fld

Mesh + Node_Data

out_obj

output renderable object

 

Description

Offset deforms the shape based on the vector data at a node. The deformation factor is defined by Factor slider. The range of factor slider is 0~1. To scale up the deformation, the parameter Offset scale is used to set a scale factor. In fact, the node vector data multiplied by the Factor slider value and the Offset scale value can be added to the node's coordinate values in the mesh.

If scale factor is turned on, the field data is multiplied by the Factor slider and then output. Hence, the data values and the deformation factor are in proportion. This is useful when there is a need to display stress contours while deforming the shape.

Note: There is a need to set minimum and maximum values by connecting the set_minmax module to the field output port or by any other method. If not, the display generated has no value.

Input Ports

in_field

The input is a field of vector data having 3 components per node.

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

data_component

UIradioBoxLabel. Selects the node data to be used in the deformation. The deformation requires vector data with three components.

Factor slider

UIslider. Sets the deformation factor. The default range is 0~1. The 0 value corresponds to the state before deformation while the 1 value corresponds to the state after deformation.

Offset Scale

UIfield. Defines the scale factor for the deformation. The deformation is usually small and this parameter is used to enlarge (expand) it.

Scale Data

UItoggle. If this parameter is turned on, the output data is multiplied by the value of the Factor slider parameter.

Output Ports

out_fld

This is a field obtained by deforming the mesh based on the vector data at the nodes.

out_obj

This is a renderable version of the output field

Example

File

See also