Interface MiCellFilterI
- All Superinterfaces:
MiCellFilter
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 acceptCell
returns false
the cell specified
by the index i
is 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:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptCell
(long cellIndex) Checks if the cell is accepted.Methods inherited from interface com.openinventor.meshvizxlm.mesh.cell.MiCellFilter
getTimeStamp
-
Method Details
-
acceptCell
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.
- Parameters:
cellIndex
- the index of the cell to be checked.- Returns:
true
if the cell is accepted
-