slice
Synopsis
The slice module extracts a 2D slice from a field with an arbitrarily positioned slice plane.
Input Port
Parameters
Output Port
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
A 3D or 2D mesh. It may optionally have node and/or cell data that can be mapped onto resulting mesh.
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.
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
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.
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.
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 Port
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
v/dv_examp/slice.v
Libraries.Examples.Visualization.Threshold
v/dv_examp/thresh.v
Libraries.Examples.Visualization.Clamp
v/dv_examp/clamp.vFile
See also related modules