offset
Synopsis
Deform a mesh by data vector at each node
Input Port
in_field
|
Mesh + Node_Data
|
ui_parent
|
user interface parent object
|
Parameters
data_component
|
UIradioBoxLabel
|
selects which data vector to use for offset
|
Scale
|
UIslider
|
scale used in offsetting
|
Output Port
out_fld
|
Mesh + Node_Data
|
out_obj
|
output renderable object
|
Description
offset "physically"deforms a mesh by the values of a one-, two-, or three- velctor component located at each node. The first elemetn of the vector translates the node's X coordinate, the second (if present) translates the Y coordinate, and the third (if present) tranlates the Z coordinate. The magnitude of each translation is proportional to the vlaues at the nodes multiplied by a scaling factor.
Input
in_field
The input is any mesh with Node_Data. Its components can be a one-, two-, or thre-element vector.
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. Radio buttons to pick which component to use as the three-element vectore that defines the offset. The default is the first (0th) component. If the node data lables are present, they are displayed.
scale
UIslider. A float slider used to scale the degree of distortion caused by the vector component. The default is 1.0. The range is -10.0 to 10.0.
Output Port
out_fld
The output is a new field containing as its mesh the orignial mesh distorted by the vector compontent times the scaling factor, and containing as it;s Node_Data a reference to the input Node_Data. A generic input Mesh creates a Mesh output. Mesh_Struct, Mesh_Unif, or Mesh_Rect input creates Mesh_Struct output.
out_obj
This is a renderable version of the output field
Example
Not available
File
v/modules.v
See also related modules