![]()
General Module Function
The crop_and_downsize module is used to subset an image, or structured 1D, 2D or 3D mesh (an EVS "field" data type with implicit connectivity). Similar to cropping and resizing a photograph, crop_and_downsize sets ranges of cells in the I, J and K directions which create a subset of the data. When used on an image (which only has two dimensions), crop removes pixels along any of the four edges of the image. Additionally, crop_and_downsize reduces the resolution of the image or grid by an integer downsize value. If the resolution divided by this factor yields a remainder, these cells are dropped.
crop_and_downsize refers to I, J, and K dimensions instead of x-y-z. This is done because grids are not required to be parallel to the coordinate axes, nor must the grid rows, columns and layers correspond to x, y, or z. You may have to experiment with this module to determine which coordinate axes or model faces are being cropped or downsized.
Module Input Ports
crop_and_downsize has only one input port. Input to this port must contain structured mesh data and nodal data.
Module Output Ports
crop_and_downsize has two output ports. The first output port (closest to the left) outputs a structured mesh data and nodal data of the cropped region. The second port outputs a renderable geometry.

Module Control Panel
The control panel for crop_and_downsize is shown in the figure above. Sliders are used to select the I, J, and K dimension crop ranges. Each dimension range has sliders to select the min, max value and downsize factor. For example, to crop the structured mesh in the I coordinate direction from 10 to 22, set the I min slider to 10 and the I max slider to 22. The slider selections are inclusive. The default min and max for each coordinate direction reflect the min and max of the mesh data.
The Immediate Sliders toggle causes the display to update as you move the slider(s).
Related Modules
-> cut