Class MoCellRangesElement


  • public class MoCellRangesElement
    extends SoAccumulatedElement
    Element that stores the current accumulated cell ranges and computes the intersection of all these.
    See Also:
    MoCellRanges
    • Method Detail

      • add

        public static void add​(SoState state,
                               MoCellRanges cellRanges)
        Add the given cell ranges for the specified traversal state.
        Parameters:
        state - traversal state
        cellRanges - cell ranges node
      • getBegin

        public static long[] getBegin​(SoState state,
                                      int numDimension)
        Returns the current begin cell index from the specified traversal state.
        Parameters:
        state - traversal state
        numDimension - number of dimension requested for the cell index
        Returns:
        a cell index corresponding to the beginning of the range. Return an undefined index MxMeshViz.UNDEFINED_ID if the beginning is not defined.
      • getEnd

        public static long[] getEnd​(SoState state,
                                    int numDimension)
        Returns the current end cell index from the specified traversal state.
        Parameters:
        state - traversal state
        numDimension - number of dimension requested for the cell index
        Returns:
        a cell index corresponding to the ending of the range. Return an undefined index MxMeshViz.UNDEFINED_ID if the end is not defined.