![]() |
![]() |
![]() |
![]() |
DVfld_match
Synopsis
detect the mesh type of a field
module DVfld_match {
Mesh+Iparam &in {
xform+nonotify; /* this will not
cause a field type change */
};
int+Oparam index=0;
group+write+nonotify links {
link+OPort3 link0;
link+OPort3 link1;
link+OPort3 link2;
link+OPort3 link3;
};
method+notify_val+notify_inst match_update<status=1>
= "DVfld_match_update";
};Description
DVfld_match detects the mesh type of a field. It compares the mesh type of the input field &in against a list of links to specific mesh types. It then outputs the index of the matching mesh. This index is usually used as input to DVswitch, which uses it as an index into its array of base modules to find the correct base module to use.
Input
Output
Links to DVfld_match's matching choices. For example, DVcrop uses DVfld_match to discover the mesh type of its input in order to call the correct DVcrop_type base module. It defines these links as:links { link0 => DVcrop_unif.in; link1 => DVcrop_rect.in; link2 => DVcrop_struct.in; };
An integer whose value is the index of the "match" in the links object. For example, if the input field to DVcrop is Mesh_Rect, index's value is 1.
Example
Libraries.Main.Filters.downsize Libraries.Main.Filters.crop Libraries.Main.Mappers.slice
File
See also
![]() |
![]() |
![]() |
![]() |