Class MiSphereSliceExtractHexahedronIjk
- All Implemented Interfaces:
MiBaseExtractor,MiExtractorIjk
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(MiScalardSetI),
MiSphereSliceExtractIjk.extractScalarSet(MiScalardSetIjk),
extractVec3Set(MiVec3dSetI) or
MiSphereSliceExtractIjk.extractVec3Set(MiVec3dSetIjk) methods.
The following sample code shows how to extract a sphere slice from a mesh:
{
MiSphereSliceExtractHexahedronIjk sphereSliceExtract = MiSphereSliceExtractHexahedronIjk.getNewInstance(mesh);
MeXSurfaceMeshUnstructured sphereSlice = sphereSliceExtract.extractSlice(center,radius, null);
}
-
Method Summary
Modifier and TypeMethodDescriptionabstract MeXScalardSetIextractScalarSet(MiScalardSetI scalarSet) Computes aPER_NODEscalar set on the extracted sphere slice.abstract MeXVec3dSetIextractVec3Set(MiVec3dSetI vectorSet) Computes a vector set on the extracted sphere slice.static <T extends MiHexahedronTopologyExplicitIjk,G extends MiGeometryI>
MiSphereSliceExtractHexahedronIjkgetNewInstance(MiVolumeMeshHexahedronIjk<T, G> mesh) Create an instance of sphere slice extractor for hexahedron IJK volume mesh.Methods inherited from class com.openinventor.meshvizxlm.extractors.slice.MiSphereSliceExtractIjk
extractScalarSet, extractSlice, extractVec3Set, getExtract, getNewInstanceMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.openinventor.meshvizxlm.extractors.MiBaseExtractor
setExtractorCallbackMethods inherited from interface com.openinventor.meshvizxlm.extractors.MiExtractorIjk
addCellRange, clearCellRanges
-
Method Details
-
getNewInstance
public static <T extends MiHexahedronTopologyExplicitIjk,G extends MiGeometryI> MiSphereSliceExtractHexahedronIjk getNewInstance(MiVolumeMeshHexahedronIjk<T, G> mesh) Create an instance of sphere slice extractor for hexahedron IJK volume mesh.- Parameters:
mesh- the input mesh- Returns:
- a sphere slice extractor for hexahedron IJK volume mesh
-
extractScalarSet
Computes aPER_NODEscalar set on the extracted sphere slice.Note: The argument i of the method
MiScalardSetI.get(long)refers to the i-th node of the mesh. Thus the binding of the input set must bePER_NODE. 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
Computes a vector set on the extracted sphere slice.Note: The argument i of the method
MiVec3dSetI.get(long)refers to the i-th node of the mesh. Thus the binding of the input set must bePER_NODE. 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
-