slice_texture2D
Synopsis
create a 2D texture mapped slice of a uniform field
Input Port
in_field
|
Mesh_Unif + Node_Data
|
in_plane
|
slicing plane (Mesh)
|
texture_map
|
colors, from colormap
|
Parameters
Output Port
out_fld
|
Mesh_Unif + Space2 +Dim2 + Node_Data
|
out_obj
|
output renderable object
|
Description
slice_texture2D uses a 2D slice plane to extract a slice from a 3D uniform field. It then 2D texture maps this slice plane with colors representing the data values of the first component (which must be scalar) on the extracted slice.
Input
in_field
The input is a Mesh_Unif with Node_Data, The first component is used to create the texture map.
in_plane
The slicing plane. This is generated by the plane object found in Geometries.Plane or Geometries.FPlane. 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.
texture_map
A colormap to provide the texture map, from Libraries.Main.Fields.Data.colormap.
Parameters
none.
Output Port
out_fld
The output is a 2D Mesh_Unif. Its Node_Data is the u, v, w texture mapping values. Its points array (extents) is set to retain the position of the field in space.
out_obj
This is a renderable version of the output field.
Example
Libraries.Examples.Visualization.Slice_Texture2D
v/dv_examp/slc_txt2.v
File
v/modules.v
See also related modules