orthoslice


Synopsis

produce a slice of a structured field perpendicular to a coordinate axis

Input Ports

in_field

Mesh_Struct + Node_Data

ui_parent

user interface parent object

 

Parameters

axis

UIslider

specifies the constant dimension

plane

UIslider

specifies the slice index of the axis

 

Output Ports

out_fld

Mesh_Struct + Node_Data

out_obj

output renderable object

 

Description

orthoslice subsets a structured field by extracting one slice plane. The slice plane can only be orthogonal to the X, Y, or Z axis.

Input Ports

in_field

The input must contain a structured mesh (mesh type Mesh_Struct, Mesh_Unif, or Mesh_Rect) and Node_Data. The input can be 1D, 2D, or 3D.

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

axis

UIslider. An integer slider. Selects which axis (X = 0, Y = 1, Z = 2) the orthoslice is perpendicular to. The default is 0. If the field is 1D or 2D, three values are still displayed. Select the values meaningful for the input data.

plane

UIslider. An integer slider. Selects which plane to extract from the input. The default is dims[axis]/2. The range is 0 to max_dim.

Output Ports

out_fld

The output is a field with a new structured mesh of the same type as the input field. The mesh is the mesh of the slice. It contains the slice's Node_Data.

out_obj

This is a renderable version of the output field.

Example

Libraries.Examples.Visualization.Orthoslice
examples/orth.v
Libraries.Examples.Visualization.Null_Data
examples/nulldt.v

File

v/modules.v

See also