Class MoMeshPlaneSlice

  • All Implemented Interfaces:
    SafeDisposable

    public class MoMeshPlaneSlice
    extends MoMeshRepresentation
    Rendering node that displays a plane slice of a volume mesh.

    A plane slice is an unstructured surface mesh defined by the intersection of an arbitrary plane with a volume mesh. The plane (an SbPlane) is defined by a direction vector and a distance from the origin.

    The slice can be colored using a scalar set defined in the colorScalarSetId inherited field. This is an index into the list of scalar sets existing in the traversal state (see the MoScalarSetxxx nodes). To disable coloring set this field to -1. Rendering can be modified using various property nodes (see the "See also" section).

    See Also:
    MoCellFilter, MoColorMapping, MoDrawStyle, MoMaterial, MiPlaneSliceExtractUnstructured, MiPlaneSliceExtractHexahedronIjk, MiPlaneSliceExtractIjk
    • Field Detail

      • plane

        public SoSFPlane plane
        Position of the plane slice. The default plane is Z=0.
    • Constructor Detail

      • MoMeshPlaneSlice

        public MoMeshPlaneSlice()
        Constructs a rendering node with default plane Z=0.
    • Method Detail

      • getUnstructuredExtractor

        public MiPlaneSliceExtractUnstructured getUnstructuredExtractor()
        Gets the plane slice extractor for unstructured meshes to reuse outside this node.
        Note: The returned object may be null if no unstructured mesh has been set in the scene graph or if no render action has traversed the scene graph.
        Returns:
        the plane slice extractor for unstructured meshes
      • getHexahedronIjkExtractor

        public MiPlaneSliceExtractHexahedronIjk getHexahedronIjkExtractor()
        Gets the plane slice extractor for hexahedron IJK meshes to reuse outside this node.
        Note: The returned object may be null if no hexahedron mesh has been set in the scene graph or if no render action has traversed the scene graph.
        Returns:
        the plane slice extractor for hexahedron IJK meshes
      • getIjkExtractor

        public MiPlaneSliceExtractIjk getIjkExtractor()
        Gets the plane slice extractor for IJK meshes to reuse outside this node.
        Note: The returned object may be null if no IJK mesh has been set in the scene graph or if no render action has traversed the scene graph.
        Returns:
        the plane slice extractor for IJK meshes