Class MiCellExtractUnstructured

java.lang.Object
com.openinventor.meshvizxlm.extractors.cell.MiCellExtractUnstructured
All Implemented Interfaces:
MiBaseExtractor

public abstract class MiCellExtractUnstructured extends Object implements MiBaseExtractor
Cell extractor for unstructured meshes.

Extracts a list of cells from the input unstructured mesh and builds a surface mesh representing the extracted cells.

  • Method Details

    • getNewInstance

      public static <C extends MiVolumeCell, T extends MiVolumeTopologyExplicitI<C>, G extends MiGeometryI> MiCellExtractUnstructured getNewInstance(MiVolumeMeshUnstructured<C,T,G> mesh)
      Create an instance of cell extractor for unstructured volume mesh.
      Parameters:
      mesh - the input mesh
      Returns:
      a cell extractor for unstructured volume mesh
    • getNewInstance

      public static <C extends MiSurfaceCell, T extends MiSurfaceTopologyExplicitI<C>, G extends MiGeometryI> MiCellExtractUnstructured getNewInstance(MiSurfaceMeshUnstructured<C,T,G> mesh)
      Create an instance of cell extractor for unstructured surface mesh.
      Parameters:
      mesh - the input mesh
      Returns:
      a cell extractor for unstructured surface mesh
    • extractCell

      public abstract MeXSurfaceMeshUnstructured<MeXSurfaceCell,MeXSurfaceTopologyExplicitI<MeXSurfaceCell>,MeXGeometryI> extractCell(SortedSet<Long> cellIndexes, double factor, MiCellFilterI cellFilter)
      Creates an unstructured surface mesh from the faces of the cells corresponding to the given indices in the original volume mesh.

      Cells are scaled according to the given factor:
      Shrinking: factor < 1
      Expanding: factor > 1

      Parameters:
      cellIndexes - indices of the cells to extract
      factor - cell scale factor
      cellFilter - cell filter
      Returns:
      an unstructured surface mesh from the faces of the extracted cells
    • extractCell

      Creates an unstructured surface mesh from the faces of all the cells in the original volume mesh.

      Cells are scaled according to the given factor:
      Shrinking: factor < 1
      Expanding: factor > 1

      Parameters:
      factor - cell scale factor
      cellFilter - cell filter
      Returns:
      an unstructured surface mesh from the faces of the extracted cells
    • extractScalarSet

      public abstract MeXScalardSetI extractScalarSet(MiScalardSetI inputSet)
      Extracts a scalar set from the original mesh. The scalars are mapped onto the current extracted mesh.
      Parameters:
      inputSet - the input scalar set defined on the original mesh.
      Returns:
      the output scalar set defined on the extracted mesh.
    • extractVec3Set

      public abstract MeXVec3dSetI extractVec3Set(MiVec3dSetI inputSet)
      Extracts a vector set from the original mesh. The vectors are mapped onto the current extracted mesh.
      Parameters:
      inputSet - the input vector set defined on the original mesh.
      Returns:
      the output vector set defined on the extracted mesh.
    • extractStringSet

      public abstract MeXStringSetI extractStringSet(MiStringSetI inputSet)
      Extracts a string set from the original mesh. The strings are mapped onto the current extracted mesh.
      Parameters:
      inputSet - the input string set defined on the original mesh.
      Returns:
      the output string set defined on the extracted mesh.
    • getExtract

      Returns the result of the extraction as a mesh.
      Returns:
      result of the extraction as a mesh