Class MiSphereSliceExtractUnstructured
- java.lang.Object
-
- com.openinventor.meshvizxlm.extractors.slice.MiSphereSliceExtractUnstructured
-
- All Implemented Interfaces:
MiBaseExtractor
public abstract class MiSphereSliceExtractUnstructured extends java.lang.Object implements MiBaseExtractor
Sphere slice extractor for unstructured 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(MiScalardSetI)
orextractVec3Set(MiVec3dSetI)
methods.The following sample code shows how to extract a sphere slice from a mesh:
{ MiSphereSliceExtractUnstructured sphereSliceExtract = MiSphereSliceExtractUnstructured.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 MeXScalardSetI
extractScalarSet(MiScalardSetI scalarSet)
Extracts a scalar set from the original mesh.abstract MeXSurfaceMeshUnstructured<MeXSurfaceCell,MeXSurfaceTopologyExplicitI<MeXSurfaceCell>,MeXGeometryI>
extractSlice(SbVec3d center, double radius, MiCellFilterI filter)
Builds the topology and geometry of a sphere slice intersecting the volume mesh.abstract MeXVec3dSetI
extractVec3Set(MiVec3dSetI 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 <C extends MiVolumeCell,T extends MiVolumeTopologyExplicitI<C>,G extends MiGeometryI>
MiSphereSliceExtractUnstructuredgetNewInstance(MiVolumeMeshUnstructured<C,T,G> mesh)
Create an instance of sphere slice extractor for unstructured volume mesh.-
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
-
-
-
-
Method Detail
-
getNewInstance
public static <C extends MiVolumeCell,T extends MiVolumeTopologyExplicitI<C>,G extends MiGeometryI> MiSphereSliceExtractUnstructured getNewInstance(MiVolumeMeshUnstructured<C,T,G> mesh)
Create an instance of sphere slice extractor for unstructured volume mesh.- Parameters:
mesh
- the input mesh- Returns:
- a sphere slice extractor for unstructured volume mesh
-
extractSlice
public abstract MeXSurfaceMeshUnstructured<MeXSurfaceCell,MeXSurfaceTopologyExplicitI<MeXSurfaceCell>,MeXGeometryI> extractSlice(SbVec3d center, double radius, MiCellFilterI 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(MiScalardSetI scalarSet)
Extracts a scalar set from the original mesh. The scalars are mapped onto the current extracted mesh.- Parameters:
scalarSet
- 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 vectorSet)
Extracts a vector set from the original mesh. The vectors are mapped onto the current extracted mesh.- Parameters:
vectorSet
- the input vector set defined on the original mesh- Returns:
- the output vector 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
-
-