slice


Synopsis

The slice module extracts a 2D slice from a field with an arbitrarily positioned slice plane.

Input Ports

in_field

Mesh [+ Node_Data] [+Cell_Data]

in_plane

2D Mesh_Unif (slicing plane)

ui_parent

user interface parent object

 

Parameters

map components

UIoptionBoxLabel

node data components to output

map cell data

UIoptionBoxLabel

cell data components to output

plane distance

UIslider

moves slicing plane parallel to itself

 

Output Ports

out_fld

Mesh [+ Node_Data]

out_obj

output renderable object

 

Description

slice extracts an arbitrarily-oriented 2D slice of data from a 3D (or 2D) mesh field. Output is generated every time the slice plane moves. It should be noted that if you use slice and bounds

Input Ports

in_field

A 3D or 2D mesh. It may optionally have node and/or cell data that can be mapped onto resulting mesh.

in_plane

The slicing plane. This is a 2D Mesh_Unif. It is generated by the plane object found in Geometries.FPlane or Geometries.Plane. The plane object has its own Plane Transformation panel that controls plane rotation, translation, and scale, as well as controls to specify its size when it is connected to the default user interface object in the application in which the macro is instanced.

ui_parent

A port for connecting 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

map components

UIoptionBoxLabel. Option buttons to pick which components of in_field's node data to map to the output field. The default is the first (0th) component. If node data labels are present, they are displayed.

map cell data

UIoptionBoxLabel. Option buttons to pick which components of in_field's cell data to map to the output field. The default is the first (0th) component. If cell data labels are present, they are displayed.

plane distance

UIslider. A float slider that moves the plane through the field perpendicular to the plane's current orientation. Though the Plane Transformation panel has X, Y, and Z transformation controls, it is usually easier to use plane's controls to orient and size the plane, but use this plane distance control to move the plane. slice generates output whenever the slice plane moves.

The default distance is 0.0. The minimum range is the (absolute value of maximum coordinate - minimum coordinate) * -0.5. The maximum range is the (absolute value of the maximum coordinate - minimum coordinate) * 0.5.

Output Ports

out_fld

The output field contains a new, subsetted 2D (or 1D) mesh and a new node and/or cell data.

out_obj

This is a renderable version of the output field.

Algorithm

The interpolation algorithm for calculating coordinates and node data values is trilinear for structured meshes, and shape functions for unstructured meshes.

Example

Libraries.Examples.Visualization.Slice: examples/slice.v
Libraries.Examples.Visualization.Threshold: examples/thresh.v
Libraries.Examples.Visualization.Clamp: examples/clamp.v

File

v/modules.v

See also