Volume_To_Contour generates contours from Volume data or 3D field data.
Name | Type | Description | |
in | Mesh+Data | input volume data or 3D field | |
Name | Type | Description | UI Control |
Axis | int | The axis of contours | Slider |
First_Slice | int | The position of first slice. | Slider |
Last_Slice | int | The position of last slice. | Slider |
Slice_Spacing | int | The gap size between two slices. | Slider |
NContours | int | The number of isoline(contours) in the each slice. | Slider |
Level_min | float | Minimum level of contours. | Slider |
Level_max | float | Maximum level of contours. | Slider |
Color | int | Monochrome or color contours. | Toggle |
Name | Type | Description | |
out | Mesh+Data | output field of contours. | |
Volume_To_Contour generates a set of orthoslices and on each slice there are a set of contours. This module acutally combines two AVS modules: isoline and orthoslice. The orthoslice generates slices from 3D field data and the isoline creates the contours on each slice.
Note: This module only works for one component field data. You can use extract_component to extract a single component from data with multiple components.
in
Reference to the input field. It has to be a 3D field or volume data.
Axis
The Axis of contours. It could be 0, 1 or 2 which corresponds to X, Y or Z axis in 3D.
First_Slice
The position of first slice. The minimum value is 1 and maximum value is the dimension of the axis. This value has to be less or equal to the value of Last_Slice.
Last_Slice
The position of last slice. The minimum value is 1 and maximum value is the dimension of the axis. This value has to be greater or equal to the value of First_Slice.
Slice_Spacing
The gap size between two slices. It is a integer value.
NContours
The number of contours on each slice. It is between 1 and 20. You can modify the maximum value in the V file of UI definition if a maximum of 20 is not sufficient for your purposes.
Level_min
This float value is used to define the node data value which is used for the minimum isoline. The minimum and maximum of this value are the minimum and maximum of node data values.
Level_max
This float value is used to define the node data value which is used for the maximum isoline. The minimum and maximum of this value are the minimum and maximum of node data values.
Color
This int value is used to control if the contours are colourized. Value 0 gives monochrome isolines and 1 gives coloured isolines.
out
The output field of contours. It is a field of uniform mesh plus node data.
The User Macro Volume_To_Contour makes use of the Functional Macro VolumeToContourFunc and the UI Macro VolumeToContourUI.
An example application VolumeToContourEg is provided, which uses the AVS/Express sample data file wind.fld, to display the contours.
iac_proj/vcontour/vcontmod.v contains the V definitions of the VolumeToContourParams parameter block and the VolumeToContour module.
iac_proj/vcontour/vcontmac.v contains the V definitions of the VolumeToContourFunc Functional Macro, the VolumeToContourUI User Interface Macro, and the Volume_To_Contour User Macro.
iac_proj/vcontour/vcontapp.v contains the V definition of the example application VolumeToContourEg.
Dave Goughnour Advanced Visual Systems, Inc.
MA YingLiang Manchester Visualization Centre
International AVS Centre Manchester Visualization Centre Manchester Computing University of Manchester Oxford Road Manchester United Kingdom M13 9PL
contour