Synopsis
Creates multiple 2D or 3D solid contours and, optionally, overlays them with isolines.
Input Ports
Parameters
Output Ports
Description
The solid_contour module produces a set of solid (filled) contour regions and, optionally, overlays them with isolines. The module computes the contour regions as uniformly spaced values, based on the values of the number of contours, min level, and max level parameters.
If the input mesh is 2D, the output is similar to contour lines, with the region between a given set of lines filled with a color that represents the value of that contour. The cells in the output field are subdivisions of the input cells, cut by the contour lines.
If the input mesh is 3D, the output is a set of 3D cells that fill the regions between adjacent isosurfaces, with the cells in a particular region filled with a color that represents the value of that contour. The cells in the output field are typically subdivisions of the input cells, cut by the contour lines.
The data value in a given output cell is the average of the values of the two contour lines or surfaces that bound that region.
If the contour lines parameter is turned on, solid_contour also produces isolines that overlay the contour regions. In addition, if color lines is turned on, the isolines are colored to match the contour region that they overlay.
Note: The solid_contour module does not generate vertex normals by default. For more details, see Vertex normal generation.
Input Ports
in_field
A 2D or 3D mesh plus node data to contour. A 2D mesh produces output is similar to contour lines, with the region between a given set of lines filled with a color that represents the value of that contour, and cells in the output field that are subdivisions of the input cells, cut by the contour lines. A 3D mesh produces a set of 3D cells that fill the regions between adjacent isosurfaces, with the cells in a particular region filled with a color that represents the value of that contour, and cells in the output field that are typically subdivisions of the input cells, cut by the contour lines.
ui_parent
A port to connect to a user interface object that contains the module's widgets. By default, it is connected to the default user interface object in the application in which the module is instanced. (This default connection is not drawn.)
Parameters
contour component
The specific component of the input field to contour. The default is the first (0th) component.
number of contours
The number of contour regions to produce.
min level
max level
The minimum and maximum isoline/isosurface values between which to extract data. The module extracts from the selected contour component all data values in this range. The default is 0.0.
The data type of the UIslider used to set these values is converted automatically to the data type of the node data.
contour lines
A UItoggle with which to specify whether to create isolines. The default is OFF.
color lines
A Utoggle with which to specify whether to color isolines. The default is OFF. This parameter is relevant only if the contour lines is ON.
Output Ports
out_fld
A mesh plus node data that contains the solid contour regions. This mesh has the same dimensionality as the input.
out_obj
A renderable object version of the solid contour regions.
out_field_line
A field that contains the overlying isolines, if created.
out_obj_line
A renderable object version of the overlying isolines, if created.
File
v/modules.v
See Also