Class MiPlaneSliceExtractUnstructured

java.lang.Object
com.openinventor.meshvizxlm.extractors.slice.MiPlaneSliceExtractUnstructured
All Implemented Interfaces:
MiBaseExtractor

public abstract class MiPlaneSliceExtractUnstructured extends Object implements MiBaseExtractor
Plane slice extractor for unstructured volume meshes.

A plane slice is the intersection of a given plane with the mesh volume. The extracted plane slice is an unstructured surface.

  • Method Details

    • getNewInstance

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

      Builds the topology and geometry of a plane slice intersecting the volume mesh.
      Parameters:
      normal - normal to the plane slice
      distance - position of the plane relatively to the origin along the normal
      filter - the cell filter
      Returns:
      an unstructured surface mesh representing the plane slice
    • extractLineSlice

      public abstract MeXLineMeshUnstructured<MeXLineCell,MeXLineTopologyExplicitI<MeXLineCell>,MeXGeometryI> extractLineSlice(SbVec3d normal, double distance, MiCellFilterI filter)
      Builds the topology and geometry of a line plane slice intersecting the volume mesh. Mainly used to extract external edges of cell on polyhedral mesh.
      Parameters:
      normal - normal to the plane slice
      distance - position of the plane relatively to the origin along the normal
      filter - the cell filter
      Returns:
      the extracted plane slice as an unstructured line mesh
    • extractScalarSet

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

      public abstract MeXVec3dSetI extractVec3Set(MiVec3dSetI vectorSet)
      Extracts a vector set from the volume mesh. The vectors are mapped onto the current extracted plane slice.
      Parameters:
      vectorSet - the input vec3 set defined on the volume mesh
      Returns:
      the output scalar set defined on the resulting surface mesh
    • getExtract

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