- All Superinterfaces:
public interface MiCellFilterI extends MiCellFilterDefines a cell filter for unstructured meshes.
This interface is used for filtering cells on unstructured meshes.
Filtering cells is a way to specify which cells are used to build the mesh representation.
When the method
falsethe cell specified by the index
iis not taken into account by the extraction. It is as if the mesh does not contain this cell.
In order to define a custom cell filter for an unstructured mesh, create a class derived from this class.
- See Also:
boolean acceptCell(long cellIndex)Checks if the cell is accepted.
Accepted cells are used during the extraction process.
The implementation of this method must be thread-safe because it might be called concurrently by multiple threads. The way this method is implemented is critical for performance. Any inefficient implementation may impact very significantly the duration of the skin or slab extractions. For instance, using a mutex to ensure this method is thread-safe is in general not efficient.
cellIndex- the index of the cell to be checked.
trueif the cell is accepted