Class MoMeshSlab

  • All Implemented Interfaces:
    SafeDisposable

    public class MoMeshSlab
    extends MoMeshRepresentation
    Rendering node that displays a slab of an IJK volume mesh.

    A slab of a mesh is an unstructured surface mesh (skin) defined by an I, J or K index and a thickness.

    The mesh 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, MiSlabExtractHexahedronIjk, MiSlabExtractIjk
    • Field Detail

      • index

        public SoSFInt32 index
        The index of the slab. The default value is 0.
      • thickness

        public SoSFInt32 thickness
        Thickness of the slab in number of cells. The default value is 1.
      • dimension

        public SoSFEnum<Dimension> dimension
        The dimension along which the slab will be computed. The default value is I.
    • Constructor Detail

      • MoMeshSlab

        public MoMeshSlab()
        Constructs a rendering node to display a slab of an IJK volume mesh.
    • Method Detail

      • getHexahedronIjkExtractor

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

        public MiSlabExtractIjk getIjkExtractor()
        Gets the slab 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 slab extractor for IJK meshes