Class MiSphereSliceExtractIjk
- java.lang.Object
-
- com.openinventor.meshvizxlm.extractors.slice.MiSphereSliceExtractIjk
-
- All Implemented Interfaces:
MiBaseExtractor,MiExtractorIjk
- Direct Known Subclasses:
MiSphereSliceExtractHexahedronIjk
public abstract class MiSphereSliceExtractIjk extends java.lang.Object implements MiExtractorIjk
Sphere slice extractor for structured volume meshes.A sphere slice is the intersection of a given sphere with the mesh volume. The extracted sphere slice is an unstructured surface mesh.
Additional data sets can be mapped onto this extracted surface by calling the
extractScalarSet(MiScalardSetIjk)orextractVec3Set(MiVec3dSetIjk)methods.The following sample code shows how to extract a sphere slice from a mesh:
{ MiSphereSliceExtractIjk sphereSliceExtract = MiSphereSliceExtractIjk.getNewInstance(mesh); MeXSurfaceMeshUnstructured sphereSlice = sphereSliceExtract.extractSlice(center,radius, null); }
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract MeXScalardSetIextractScalarSet(MiScalardSetIjk scalarSet)Computes aPER_CELLscalar set on the extracted sphere slice.abstract MeXSurfaceMeshUnstructured<MeXSurfaceCell,MeXSurfaceTopologyExplicitI<MeXSurfaceCell>,MeXGeometryI>extractSlice(SbVec3d center, double radius, MiCellFilterIjk filter)Builds the topology and geometry of a sphere slice intersecting the volume mesh.abstract MeXVec3dSetIextractVec3Set(MiVec3dSetIjk vectorSet)Computes a vector set on the extracted sphere slice.abstract MeXSurfaceMeshUnstructured<MeXSurfaceCell,MeXSurfaceTopologyExplicitI<MeXSurfaceCell>,MeXGeometryI>getExtract()Returns the result of the extraction as a mesh.static <T extends MiTopologyIjk,G extends MiGeometryHexahedronIjk>
MiSphereSliceExtractIjkgetNewInstance(MiVolumeMeshVertexHexahedronIjk<T,G> mesh)Create an instance of sphere slice 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> MiSphereSliceExtractIjk getNewInstance(MiVolumeMeshVertexHexahedronIjk<T,G> mesh)
Create an instance of sphere slice extractor for a non indexed hexahedron volume mesh IJK.- Parameters:
mesh- the input mesh- Returns:
- a sphere slice extractor for a non indexed hexahedron volume mesh IJK.
-
extractSlice
public abstract MeXSurfaceMeshUnstructured<MeXSurfaceCell,MeXSurfaceTopologyExplicitI<MeXSurfaceCell>,MeXGeometryI> extractSlice(SbVec3d center, double radius, MiCellFilterIjk filter)
Builds the topology and geometry of a sphere slice intersecting the volume mesh.- Parameters:
center- the position of the center of the sphereradius- the radius of the spherefilter- the cell filter- Returns:
- an unstructured surface mesh representing the sphere slice
-
extractScalarSet
public abstract MeXScalardSetI extractScalarSet(MiScalardSetIjk scalarSet)
Computes aPER_CELLscalar set on the extracted sphere slice.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. AnUnsupportedOperationExceptionis thrown otherwise.- Parameters:
scalarSet- the input scalar set defined on the volume mesh- Returns:
- the output scalar set defined on the resulting sphere slice mesh
-
extractVec3Set
public abstract MeXVec3dSetI extractVec3Set(MiVec3dSetIjk vectorSet)
Computes a vector set on the extracted sphere slice.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. AnUnsupportedOperationExceptionis thrown otherwise.- Parameters:
vectorSet- the input vector set defined on the volume mesh- Returns:
- the output vector set defined on the resulting sphere slice 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
-
-