subset_cells

image\subset_cells_mod.jpg

General Module Function

The subset_cells module is a subsetting module used to eliminate whole cells from the input mesh based on the nodal data of one or more nodes that comprise the cells. It outputs a blocky mesh of cells bounded by the threshold value.

This subset_cells module replaces the older version of threshold which is deprecated. It works in a manner like data_math or coordinate_math. It allows you to do complex threshold calculations on coordinates and MULTIPLE data components with a single module, which can dramatically simplify your network and reduce memory usage. It has 2 floating point variables (f1,f2) which are setup with ports so they can be easily animated.

Module Input Ports

subset_cells has three input ports. Input sent to the left port must contain nodal data. The other two port are float numbers that can be used in the thresholding expression.

Module Output Ports

subset_cells has four output ports. The first two output ports (closest to the left) are the float values passed through. The third outputs only those cells where all the cell's nodes meet the inclusion criteria. The last (red) port outputs a renderable geometry.

image\subset_cells_panel.jpg

Module Control Panel

The control panel for subset_cells is shown above with an input field having 6 nodal data components. This module is similar to plume_volume in its subsetting but more like data_math in it use.

The Criteria for Subset option allows for subsetting by either a nodal data component or a cell data component. The logical expression in the Criteria to Include Nodes type-in determines which nodes will be included in the output.

 

Example Expressions:

1) n0 >= f1 All nodes with "Concentration0" greater than or equal to f1 will be included.

2) (n0 < f1) or (n1 < f2) All nodes with "Concentration0" less than f1 OR "60PctMin-Conc0" less than f2 will be included.

3) (n0 >= f1) and (X < 11500.0) All nodes with "Concentration0" greater than or equal to f1 and X coordinates less than 11,500 will be included.

Jump to a list of available Mathematical Operators