Inserts a slice of data_values into a volume of data.
Name | Type | Description | |
In_Slice | Mesh+Data | Slice to be inserted into the volume | |
Ref_Volume | Mesh | Reference volume which provides the size of the output volume | |
Name | Type | Description | UI Control |
axis | int | specifies the constant dimension of the plane to be inserted | UIslider |
Slice | float | specifies the location where the plane is inserted | UIslider |
use_value | boolean | use an different value than the node data component | UItoggle |
value | integer | value to be inserted for non "NULL" values | UIoptionBoxLabel |
Name | Type | Description | |
out | Mesh+Data | output field of modified 3D volume. | |
obj | GDObject | Directly renderable object of the output field | |
Slice_to_Volume replaces all data values of a given reference volume by the data values of a given slice. The slice dimensions have to be the same as the x and y dimension of the reference volume. The reference volume input is used to provide the dimensions of the output volume. The input volume can be used to initialize the output volume. If there is no input volume provided the Output volume is initialized with 0 values. Either way the reference volume must be provided to define the dimensions of the output volume.
In_Slice
Reference to a 2D input field (the slice to be inserted into the volume).
Ref_Volume
Reference Volume (3D field) that provides the dimensions of the output field.
axis
Specifies the constant dimension of the plane to be inserted by the Slice_to_Volume macro.
Slice
Position of the slice in the new volume.
use_value
Toggle that decides if the data is replaced by a given value.
value
Value that is inserted in the new volume if the slice value is not the NULL value on the slice.
out
The output field of the Slice_to_Volume macro.
obj
Directly renderable GDobject of the output field of the Slice_to_Volume module that can be displayed in a 3D viewer.
An example application Slice_to_Volume_Eg is provided, which uses the AVS/Express sample data file hydrogen.fld. This Application uses the orthoslice module to select a plane of the hydrogen.fld file to be inserted as slice into the same Volume. Using the Select_Slice module the user can select where to insert the slice in the volume.
iac_proj/slc2vol/s2v_mods.v Creates the Slice_to_Volume_Mods library containing the parameter block Slice_to_Volume_Params and the low-level Slice_to_Volume_Core.
iac_proj/slc2vol/s2v_macs.v Creates the Slice_to_Volume_Macs library containing the functional macro Slice_to_Volume_FUNC, the user interface macro Slice_to_Volume_UI and the high-level user macro Slice_to_Volume.
iac_proj/slc2vol/s2v_apps.v reates the Slice_to_Volume_Apps library containing and the example appplication Slice_to_Volume_Eg.
Dave Goughnour Advanced Visual Systems, Inc.
Tobias Schiebeck International AVS Centre
International AVS Centre Manchester Visualization Centre Manchester Computing University of Manchester Oxford Road Manchester United Kingdom M13 9PL