Class MiCellExtractIjk
- java.lang.Object
-
- com.openinventor.meshvizxlm.extractors.cell.MiCellExtractIjk
-
- All Implemented Interfaces:
MiBaseExtractor
,MiExtractorIjk
- Direct Known Subclasses:
MiCellExtractHexahedronIjk
public abstract class MiCellExtractIjk extends java.lang.Object implements MiExtractorIjk
Cell extractor for structured volume meshes.Extracts a list of cells from the input structured mesh and builds a surface mesh representing the extracted cells.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract MeXSurfaceMeshUnstructured<MeXSurfaceCell,MeXSurfaceTopologyExplicitI<MeXSurfaceCell>,MeXGeometryI>
extractCell(double factor, MiCellFilterIjk cellFilter)
Creates an unstructured surface mesh from the faces of all the cells in the original volume mesh.abstract MeXSurfaceMeshUnstructured<MeXSurfaceCell,MeXSurfaceTopologyExplicitI<MeXSurfaceCell>,MeXGeometryI>
extractCell(int[] cellIndexes, double factor, MiCellFilterIjk cellFilter)
Creates an unstructured surface mesh from the faces of the cells corresponding to the given indices in the original volume mesh.abstract MeXScalardSetI
extractScalarSet(MiScalardSetIjk scalarSet)
Extracts aPER_CELL
scalar set from the original mesh.abstract MeXStringSetI
extractStringSet(MiStringSetIjk inputSet)
Extracts a string set from the original mesh.abstract MeXVec3dSetI
extractVec3Set(MiVec3dSetIjk vectorSet)
Extracts a vector set from the original mesh.abstract MeXSurfaceMeshUnstructured<MeXSurfaceCell,MeXSurfaceTopologyExplicitI<MeXSurfaceCell>,MeXGeometryI>
getExtract()
Returns the result of the extraction as a mesh.static <T extends MiTopologyIjk,G extends MiGeometryHexahedronIjk>
MiCellExtractIjkgetNewInstance(MiVolumeMeshVertexHexahedronIjk<T,G> mesh)
Create an instance of cell extractor for a non indexed hexahedron volume mesh IJK.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.openinventor.meshvizxlm.extractors.MiBaseExtractor
setExtractorCallback
-
Methods inherited from interface com.openinventor.meshvizxlm.extractors.MiExtractorIjk
addCellRange, clearCellRanges
-
-
-
-
Method Detail
-
getNewInstance
public static <T extends MiTopologyIjk,G extends MiGeometryHexahedronIjk> MiCellExtractIjk getNewInstance(MiVolumeMeshVertexHexahedronIjk<T,G> mesh)
Create an instance of cell extractor for a non indexed hexahedron volume mesh IJK.- Parameters:
mesh
- the input mesh- Returns:
- a cell extractor for a non indexed hexahedron volume mesh IJK
-
extractCell
public abstract MeXSurfaceMeshUnstructured<MeXSurfaceCell,MeXSurfaceTopologyExplicitI<MeXSurfaceCell>,MeXGeometryI> extractCell(int[] cellIndexes, double factor, MiCellFilterIjk 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 {i0, j0, k0, i1, j1, k1, ...}factor
- cell scale factorcellFilter
- cell filter- Returns:
- an unstructured surface mesh from the faces of the extracted cells
-
extractCell
public abstract MeXSurfaceMeshUnstructured<MeXSurfaceCell,MeXSurfaceTopologyExplicitI<MeXSurfaceCell>,MeXGeometryI> extractCell(double factor, MiCellFilterIjk cellFilter)
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 factorcellFilter
- cell filter- Returns:
- an unstructured surface mesh from the faces of the extracted cells
-
extractScalarSet
public abstract MeXScalardSetI extractScalarSet(MiScalardSetIjk scalarSet)
Extracts aPER_CELL
scalar set from the original mesh. The scalars are mapped onto the current extracted mesh.Note: The argument i,j,k of the method
MiScalardSetIjk.get(int, int, int)
refers to the cell (i,j,k). Thus the binding of the input set must bePER_CELL
. AnUnsupportedOperationException
is thrown otherwise.- Parameters:
scalarSet
- the input scalar set defined on the volume mesh- Returns:
- the output scalar set defined on the extracted mesh
-
extractVec3Set
public abstract MeXVec3dSetI extractVec3Set(MiVec3dSetIjk vectorSet)
Extracts a vector set from the original mesh. The vectors are mapped onto the current extracted mesh.Note: The argument i,j,k of the method
MiVec3dSetIjk.get(int, int, int)
refers to the cell (i,j,k). Thus the binding of the input set must bePER_CELL
. AnUnsupportedOperationException
is thrown otherwise.- Parameters:
vectorSet
- the input vector set defined on the volume mesh- Returns:
- the output vector set defined on the extracted mesh
-
extractStringSet
public abstract MeXStringSetI extractStringSet(MiStringSetIjk inputSet)
Extracts a string set from the original mesh. The strings are mapped onto the current extracted mesh.Note: The argument i,j,k of the method
MiStringSetIjk.get(int, int, int)
refers to the cell (i,j,k). Thus the binding of the input set must bePER_CELL
. AnUnsupportedOperationException
is thrown otherwise.- Parameters:
inputSet
- the input string set defined on the original mesh.- Returns:
- the output string set defined on the extracted mesh.
-
getExtract
public abstract MeXSurfaceMeshUnstructured<MeXSurfaceCell,MeXSurfaceTopologyExplicitI<MeXSurfaceCell>,MeXGeometryI> getExtract()
Returns the result of the extraction as a mesh.- Returns:
- result of the extraction as a mesh
-
-